summaryrefslogtreecommitdiff
path: root/src/testlib
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-05-28 11:55:47 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2010-05-28 12:27:57 +0200
commit60c12264b0ff01bb4888323b3acda0bc581021a7 (patch)
tree809a134a280e5d3102487676a7ceee4f06549603 /src/testlib
parentfa7dfb24c2d165cad438eb28c83ac2fd60831b29 (diff)
downloadqt4-tools-60c12264b0ff01bb4888323b3acda0bc581021a7.tar.gz
Fixed bug where testlib would not respect the -iterations option.
Reviewed-by: Morten Sørvig
Diffstat (limited to 'src/testlib')
-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 23c563983a..c88ecb0320 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 || !setByMacro) {
+ else if (QBenchmarkTestMethodData::current->runOnce || !setByMacro) {
iterationCount = 1;
accepted = true;
}