Ignore what stdout is going to when testing from stdin.

This commit is contained in:
Con Kolivas 2011-02-28 21:25:16 +11:00
parent 556803752b
commit 96efe033fd

2
main.c
View file

@ -1032,7 +1032,7 @@ int main(int argc, char *argv[])
usage();
exit (1);
}
if (STDOUT && isatty(fileno((FILE *)stdout))) {
if (!TEST_ONLY && STDOUT && isatty(fileno((FILE *)stdout))) {
print_err("Will not write stdout to a terminal. Use -f to override.\n");
usage();
exit (1);