* tests/misc/nl.sh: Add a test case.
---
 tests/misc/nl.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tests/misc/nl.sh b/tests/misc/nl.sh
index e1e00d2a2..6c0a35457 100755
--- a/tests/misc/nl.sh
+++ b/tests/misc/nl.sh
@@ -110,4 +110,18 @@ cat <<EOF > 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 <<EOF > exp-out || framework_failure_
+     1 a
+     2 b
+EOF
+cat <<EOF > 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
-- 
2.53.0


Reply via email to