From 7471a70c60476f9efec727ea08364e02b3929a59 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 21 Jun 2022 15:03:13 +0200 Subject: [PATCH] Print flush times when the test fails --- test/flush-overhead.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/flush-overhead.c b/test/flush-overhead.c index 498d17b..f49905d 100644 --- a/test/flush-overhead.c +++ b/test/flush-overhead.c @@ -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); }