mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
5fc0e11053
commit
1ef6d439ba
2 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue