diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2010-02-17 12:47:08 +0100 |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2010-02-18 13:48:55 +0100 |
commit | f07d97150549f6817c351643e1c8b0ff163803ac (patch) | |
tree | 730e92833b47a23f0dc3f7d0fd6d7eb5eb23cc5a /src/testlib | |
parent | b63c596ef6a937a3ab99d8496b5e8b6260fe8aa7 (diff) | |
download | qt4-tools-f07d97150549f6817c351643e1c8b0ff163803ac.tar.gz |
Always accept values reported directly using QTest::setBenchmarkResult.
Reviewed-by: jasplin
Diffstat (limited to 'src/testlib')
-rw-r--r-- | src/testlib/qbenchmark.cpp | 2 |
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; } |