From: Collin Funk Date: Fri, 6 Feb 2026 08:38:14 +0000 (-0800) Subject: tests: nl: check that all files are processed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb263ce69bfc35767fd0c35f88e6848daf1461e;p=thirdparty%2Fcoreutils.git tests: nl: check that all files are processed * tests/misc/nl.sh: Add a test case. --- diff --git a/tests/misc/nl.sh b/tests/misc/nl.sh index e1e00d2a2b..6c0a354576 100755 --- a/tests/misc/nl.sh +++ b/tests/misc/nl.sh @@ -110,4 +110,18 @@ cat < exp EOF compare exp out || fail=1 +# Test that all files are processed. +echo a > file1 +echo b > file2 +returns_ 1 nl file1 missing file2 > out 2> err || fail=1 +cat < exp-out || framework_failure_ + 1 a + 2 b +EOF +cat < exp-err || framework_failure_ +nl: missing: No such file or directory +EOF +compare exp-out out || fail=1 +compare exp-err err || fail=1 + Exit $fail