Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ca5db75

Browse files
committed
isolationtester: add a few fflush(stderr) calls
The lack of them is causing failures in some BF members. Per Andrew Dunstan.
1 parent 40ed59b commit ca5db75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/isolation/isolationtester.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps)
566566
*/
567567
fflush(stdout);
568568
fprintf(stderr, "invalid permutation detected\n");
569+
fflush(stderr);
569570

570571
/* Cancel the waiting statement from this session. */
571572
cancel = PQgetCancel(conn);
@@ -648,6 +649,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps)
648649
testspec->sessions[i]->name,
649650
PQerrorMessage(conns[i + 1]));
650651
/* don't exit on teardown failure */
652+
fflush(stderr);
651653
}
652654
PQclear(res);
653655
}
@@ -666,7 +668,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps)
666668
fprintf(stderr, "teardown failed: %s",
667669
PQerrorMessage(conns[0]));
668670
/* don't exit on teardown failure */
669-
671+
fflush(stderr);
670672
}
671673
PQclear(res);
672674
}

0 commit comments

Comments
 (0)