X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0d593e1ce1a218332af78b83987543756b0c6cf4..f54674f1b5d07148d9655fc3b337ad5f725272a7:/test/scan/test-scan 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" <