Print flush times when the test fails

This commit is contained in:
Rodrigo Arias 2022-06-21 15:03:13 +02:00
parent b18039a4bf
commit 7471a70c60

View File

@ -106,6 +106,11 @@ int main(void)
/* It should be able to write 1 MiB in less than 1 ms */
if (mean > 1.0) {
fprintf(stderr, "took too much time to flush: %f ms\n", mean);
fprintf(stderr, "times (in ms):\n");
for(int i=0; i < NRUNS; i++)
fprintf(stderr, " %4d %f\n", i, times[i]);
exit(EXIT_FAILURE);
}