projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29e320a
)
test: fix benchmark stats accounting
author
David Herrmann
<dh.herrmann@gmail.com>
Thu, 2 Oct 2014 10:55:29 +0000
(12:55 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/test/test-benchmark.c
b/test/test-benchmark.c
index 3467ad9f42d2accf8db8682cf86625a1659ad96d..5a04be6a95b00b305ed2fa503047f436ac08cb9e 100644
(file)
--- a/
test/test-benchmark.c
+++ b/
test/test-benchmark.c
@@
-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;
}
}