From ba9c448bb5446d0100173e7a594bcb1d849b4e39 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 7 Sep 2007 14:27:29 +0200 Subject: [PATCH] Added numbering of tests. --- lib/sorter/sort-test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sorter/sort-test.c b/lib/sorter/sort-test.c index 3eb2147e..5fcbbaf7 100644 --- a/lib/sorter/sort-test.c +++ b/lib/sorter/sort-test.c @@ -24,6 +24,7 @@ /*** Time measurement ***/ static timestamp_t timer; +static uns test_id; static void start(void) @@ -36,7 +37,7 @@ static void stop(void) { sync(); - msg(L_INFO, "Test took %.3fs", get_timer(&timer) / 1000.); + msg(L_INFO, "Test %d took %.3fs", test_id, get_timer(&timer) / 1000.); } /*** Simple 4-byte integer keys ***/ @@ -606,6 +607,7 @@ test_int64(int mode, u64 size) static void run_test(uns i, u64 size) { + test_id = i; switch (i) { case 0: -- 2.39.2