Page MenuHomeFreeBSD

D28466.diff
No OneTemporary

D28466.diff

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

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)

Event Timeline