]> granicus.if.org Git - postgresql/commitdiff
isolationtester: add a few fflush(stderr) calls
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 23 Jan 2013 16:30:14 +0000 (13:30 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 23 Jan 2013 16:30:14 +0000 (13:30 -0300)
The lack of them is causing failures in some BF members.

Per Andrew Dunstan.

src/test/isolation/isolationtester.c

index f1bb87d2f130bbb39476cd74720092d05ee63a2e..56cc7fea4f52756fdbfd01c50af729872561d7a9 100644 (file)
@@ -566,6 +566,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps)
                         */
                        fflush(stdout);
                        fprintf(stderr, "invalid permutation detected\n");
+                       fflush(stderr);
 
                        /* Cancel the waiting statement from this session. */
                        cancel = PQgetCancel(conn);
@@ -648,6 +649,7 @@ teardown:
                                                testspec->sessions[i]->name,
                                                PQerrorMessage(conns[i + 1]));
                                /* don't exit on teardown failure */
+                               fflush(stderr);
                        }
                        PQclear(res);
                }
@@ -666,7 +668,7 @@ teardown:
                        fprintf(stderr, "teardown failed: %s",
                                        PQerrorMessage(conns[0]));
                        /* don't exit on teardown failure */
-
+                       fflush(stderr);
                }
                PQclear(res);
        }