llvmpipe: Flush stdout on lp_test_* unit tests.

So that the order of test messages and gallivm/llvmpipe debug output is
preserved.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
José Fonseca 2014-10-24 19:54:28 +01:00
parent 5fc0e11053
commit 1ef6d439ba
2 changed files with 3 additions and 0 deletions

View file

@ -395,6 +395,7 @@ test_unary(unsigned verbose, FILE *fp, const struct unary_test_t *test)
printf("%s(%.9g): ref = %.9g, out = %.9g, precision = %f bits, %s\n",
test->name, in[i], ref, out[i], precision,
pass ? "PASS" : "FAIL");
fflush(stdout);
}
if (!pass) {

View file

@ -156,6 +156,7 @@ test_format_float(unsigned verbose, FILE *fp,
if (first) {
printf("Testing %s (float) ...\n",
desc->name);
fflush(stdout);
first = FALSE;
}
@ -194,6 +195,7 @@ test_format_float(unsigned verbose, FILE *fp,
test->unpacked[i][j][1],
test->unpacked[i][j][2],
test->unpacked[i][j][3]);
fflush(stdout);
success = FALSE;
}
}