mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-28 00:30:12 +01:00
Merge branch 'flush-in-tests' into 'master'
test suite: fflush() before fork() See merge request cairo/cairo!139
This commit is contained in:
commit
5090dc3f4a
1 changed files with 6 additions and 0 deletions
|
|
@ -208,6 +208,9 @@ _cairo_test_runner_preamble (cairo_test_runner_t *runner,
|
|||
if (! runner->foreground) {
|
||||
pid_t pid;
|
||||
|
||||
/* fork() duplicates output buffers, so clear them */
|
||||
fflush (NULL);
|
||||
|
||||
switch ((pid = fork ())) {
|
||||
case -1: /* error */
|
||||
return CAIRO_TEST_UNTESTED;
|
||||
|
|
@ -234,6 +237,9 @@ _cairo_test_runner_draw (cairo_test_runner_t *runner,
|
|||
if (! runner->foreground) {
|
||||
pid_t pid;
|
||||
|
||||
/* fork() duplicates output buffers, so clear them */
|
||||
fflush (NULL);
|
||||
|
||||
switch ((pid = fork ())) {
|
||||
case -1: /* error */
|
||||
return CAIRO_TEST_UNTESTED;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue