diff options
author | José Fonseca <[email protected]> | 2014-10-24 19:54:28 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-10-24 21:35:09 +0100 |
commit | 1ef6d439ba9a31af5063f55312bf17228c336177 (patch) | |
tree | 991df75171d7d905ac3daafba5002810c9de7974 | |
parent | 5fc0e11053a57d0559f30c28399ba8a8403f12a9 (diff) |
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_arit.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_format.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_arit.c b/src/gallium/drivers/llvmpipe/lp_test_arit.c index 660ad4db02e..3fc64ce691d 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_arit.c +++ b/src/gallium/drivers/llvmpipe/lp_test_arit.c @@ -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) { diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c index cdacb1ba6b9..a4b3b564d65 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_format.c +++ b/src/gallium/drivers/llvmpipe/lp_test_format.c @@ -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; } } |