tests: nl: check that all files are processed

* tests/misc/nl.sh: Add a test case.
This commit is contained in:
Collin Funk committed 2026-02-06 15:46:44 -08:00
1 parent eaac58cffa
commit 4fb263ce69
1 file changed
+14
+14
View File
@@ -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