From: David Levine Date: Wed, 31 Oct 2018 02:01:05 +0000 (-0400) Subject: Added full output test to test-scan. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d9b33232b6e3b03d7ff0b67e28e82ee455e00d99?ds=sidebyside;hp=-c Added full output test to test-scan. From commit f54674f1b5d07148d9655fc3b337ad5f725272a7. The test fails now, so added to XFAIL_TESTS. --- d9b33232b6e3b03d7ff0b67e28e82ee455e00d99 diff --git a/Makefile.am b/Makefile.am index e7e4066a..9f6b675c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/test/scan/test-scan b/test/scan/test-scan index 00e383cb..510ad36a 100755 --- a/test/scan/test-scan +++ b/test/scan/test-scan @@ -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" <