test: fix benchmark stats accounting
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Oct 2014 10:55:29 +0000 (12:55 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Oct 2014 10:55:29 +0000 (12:55 +0200)
We should not reset stats before retying a test, otherwise, the test will
file in batch mode as stats.count is 0.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
test/test-benchmark.c

index 3467ad9f42d2accf8db8682cf86625a1659ad96d..5a04be6a95b00b305ed2fa503047f436ac08cb9e 100644 (file)
@@ -285,8 +285,6 @@ int kdbus_test_benchmark(struct kdbus_test_env *env)
                                start = now_ns;
 
                                dump_stats(false);
-                               reset_stats();
-
                                break;
                        }
                }
@@ -338,8 +336,6 @@ int kdbus_test_benchmark(struct kdbus_test_env *env)
                                start = now_ns;
 
                                dump_stats(true);
-                               reset_stats();
-
                                break;
                        }
                }