]> diplodocus.org Git - nmh/commitdiff
Added full output test to test-scan.
authorDavid Levine <levinedl@acm.org>
Wed, 31 Oct 2018 02:01:05 +0000 (22:01 -0400)
committerDavid Levine <levinedl@acm.org>
Wed, 31 Oct 2018 02:01:05 +0000 (22:01 -0400)
From commit f54674f1b5d07148d9655fc3b337ad5f725272a7.  The test
fails now, so added to XFAIL_TESTS.

Makefile.am
test/scan/test-scan

index e7e4066a6968983dd5d452e62c68e9317989e7d7..9f6b675c6a8edfcdb55d71ad578d302d57c9adc8 100644 (file)
@@ -162,7 +162,9 @@ TESTS = \
     test/whom/test-whom \
     test/cleanup ## The "cleanup" test should always be last.
 
-XFAIL_TESTS =
+XFAIL_TESTS = \
+    test/scan/test-scan \
+    #
 
 check_SCRIPTS = test/common.sh
 
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