BUG FIXES
---------
-- scan(1) now checks for full output device [Bug #50925].
\ No newline at end of file
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
scan_finished ();
hdrflag = false;
fclose (in);
- if (ontty && fflush (stdout) == EOF) {
- adios("stdout", "failed to fflush");
- }
+ if (ontty)
+ fflush (stdout);
}
}
charstring_free (scanl);
if (bodycomp)
bodycomp->c_text = saved_c_text;
- if (noisy) {
- if (fputs (charstring_buffer (*scanl), stdout) == EOF) {
- adios("stdout", "failed to fputs");
- }
- if (fflush (stdout)) {
- adios("stdout", "failed to fflush");
- }
- }
+ if (noisy)
+ fputs (charstring_buffer (*scanl), stdout);
cptr = fmt_findcomp ("encrypted");
encrypted = cptr && cptr->c_text;