Skip to content

Commit

Permalink
Fix: do not warn about Data not written to terminal when in testing o…
Browse files Browse the repository at this point in the history
…r listing mode

Closes: #34
  • Loading branch information
mcmilk committed Feb 2, 2025
1 parent 3f02db6 commit 862c5f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions programs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ static void print_testmode(const char *filename)

static void check_stdout(void)
{
/* for -l and -t we can write to stdout ;) */
if (opt_mode >= MODE_LIST)
return;

if (IS_CONSOLE(fout) && !opt_force)
panic("Data not written to terminal. Use -f to force!");
}
Expand Down

0 comments on commit 862c5f7

Please sign in to comment.