summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-01-05 19:20:11 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-05 19:20:36 -0800
commit2c9d956aacdfddbb87334c985cd995d75102f789 (patch)
treec042cc0763e423b51a955c39d6011306613df970 /tests
parent1104d026514014808629f28f2e6c787bf3c520c4 (diff)
downloaddiffutils-2c9d956aacdfddbb87334c985cd995d75102f789.tar.gz
diff: remove unportable ‘diff -N - f <&-’ feature
* NEWS: Mention this. * bootstrap.conf (gnulib_modules): Add stdopen. * doc/diffutils.texi (Comparing Directories): Do not document behavior if stdin is closed. * src/diff.c: Include stdopen.h. (main): Call stdopen early. (compare_files) [__hpux]: Remove recently-introduced special case for HP-UX exec with stdin closed. * tests/new-file: Remove tests of the removed feature.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/new-file14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/new-file b/tests/new-file
index 4400051..e3a61da 100755
--- a/tests/new-file
+++ b/tests/new-file
@@ -10,12 +10,6 @@ echo a > a || fail=1
echo '0a1
> a' > exp || fail=1
-returns_ 1 diff -N - a <&- > out || fail=1
-compare exp out || fail=1
-
-returns_ 1 diff --unidirectional-new-file - a <&- > out || fail=1
-compare exp out || fail=1
-
returns_ 1 diff -N b - < a > out || fail=1
compare exp out || fail=1
@@ -25,14 +19,6 @@ compare exp out || fail=1
echo '1d0
< a' > exp || fail=1
-returns_ 1 diff -N a - <&- > out || fail=1
-compare exp out || fail=1
-
-# With closed standard input, require an exit status of 2
-# and empty stdout.
-returns_ 2 diff --unidirectional-new-file a - <&- > out || fail=1
-compare /dev/null out || fail=1
-
returns_ 1 diff -N - b < a > out || fail=1
compare exp out || fail=1