Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107332295
D28466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
643 B
Referenced Files
None
Subscribers
None
D28466.diff
View Options
diff --git a/usr.bin/diff/tests/diff_test.sh b/usr.bin/diff/tests/diff_test.sh
--- a/usr.bin/diff/tests/diff_test.sh
+++ b/usr.bin/diff/tests/diff_test.sh
@@ -228,13 +228,18 @@
-s exit:1 diff --label hello --label world `which diff` `which ls`
}
+report_identical_head()
+{
+ atf_set "require.config" unprivileged_user
+}
report_identical_body()
{
+ UNPRIVILEGED_USER=$(atf_config_get unprivileged_user)
printf "\tA\n" > A
printf "\tB\n" > B
chmod -r B
atf_check -s exit:2 -e inline:"diff: B: Permission denied\n" \
- -o empty diff -s A B
+ -o empty su -m "$UNPRIVILEGED_USER" -c 'diff -s A B'
}
non_regular_file_body()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 3:04 PM (19 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15783319
Default Alt Text
D28466.diff (643 B)
Attached To
Mode
D28466: Force diff report_identical test to use unprivileged_user
Attached
Detach File
Event Timeline
Log In to Comment