From: Martin Mares Date: Fri, 7 Sep 2007 12:27:29 +0000 (+0200) Subject: Added numbering of tests. X-Git-Tag: holmes-import~506^2~13^2~49^2~3 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ba9c448bb5446d0100173e7a594bcb1d849b4e39;p=libucw.git Added numbering of tests. --- 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: