summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2010-02-17 12:47:08 +0100
committerSamuel Rødal <sroedal@trolltech.com>2010-02-18 13:48:55 +0100
commitf07d97150549f6817c351643e1c8b0ff163803ac (patch)
tree730e92833b47a23f0dc3f7d0fd6d7eb5eb23cc5a
parentb63c596ef6a937a3ab99d8496b5e8b6260fe8aa7 (diff)
Always accept values reported directly using QTest::setBenchmarkResult.
Reviewed-by: jasplin
-rw-r--r--src/testlib/qbenchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qbenchmark.cpp b/src/testlib/qbenchmark.cpp
index 52b5287b91..23c563983a 100644
--- a/src/testlib/qbenchmark.cpp
+++ b/src/testlib/qbenchmark.cpp
@@ -159,7 +159,7 @@ void QBenchmarkTestMethodData::setResult(
if (QBenchmarkGlobalData::current->iterationCount != -1)
accepted = true;
- if (QBenchmarkTestMethodData::current->runOnce) {
+ if (QBenchmarkTestMethodData::current->runOnce || !setByMacro) {
iterationCount = 1;
accepted = true;
}