]> diplodocus.org Git - nmh/blobdiff - test/scan/test-scan
scan(1) now checks for full output device [Bug #50925].
[nmh] / test / scan / test-scan
index 00e383cb6c4073b25a45ed40b09942e99f96b10b..510ad36ac3463845d032acd9381814eb9d740d0a 100755 (executable)
@@ -39,6 +39,15 @@ run_prog scan +inbox -width 80 >"$actual" || exit 1
 check "$expected" "$actual"
 
 
+# check full output device, if one exists
+if test -c /dev/full; then
+  start_test 'full output device'
+  printf 'scan: failed to fflush stdout: No space left on device\n' >"$expected"
+  scan last >/dev/full 2>"$actual"  &&  false
+  check "$expected" "$actual"
+fi
+
+
 # check highlighting
 start_test 'highlighting'
 cat >"$expected" <<EOF