mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Avoid double output in fenv_test
This tests fork()s, so if there is still data in the stdout buffer on fork
it will print it again in the child process. This was happening in the
CheriBSD CI and caused the test to complain about malformed TAP output.
Reviewed By: ngie
Differential Revision: https://reviews.freebsd.org/D28397
(cherry picked from commit 892a05ee3a)
This commit is contained in:
parent
70a2e9a3d4
commit
76713be0f5
1 changed files with 2 additions and 0 deletions
|
|
@ -539,6 +539,8 @@ test_feholdupdate(void)
|
|||
int
|
||||
main(void)
|
||||
{
|
||||
/* Avoid double output after fork() */
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
|
||||
printf("1..8\n");
|
||||
init_exceptsets();
|
||||
|
|
|
|||
Loading…
Reference in a new issue