aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testplan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testplan.cpp')
-rw-r--r--tests/testplan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testplan.cpp b/tests/testplan.cpp
index 56d511b55..a7ec2dc33 100644
--- a/tests/testplan.cpp
+++ b/tests/testplan.cpp
@@ -204,7 +204,7 @@ bool compareDecoTime(int actualRunTimeSeconds, int benchmarkRunTimeSeconds, int
// If the calculated run time equals the expected run time, do a simple comparison
if (actualRunTimeSeconds == benchmarkRunTimeSeconds) {
- bool result = true;
+ result = true;
} else {
/* We want the difference between the expected and calculated total run time to be not more than
* 1% of total run time + 1 minute */
@@ -219,7 +219,7 @@ bool compareDecoTime(int actualRunTimeSeconds, int benchmarkRunTimeSeconds, int
permilDifferenceAllowed * 0.1, absoluteDifferenceAllowedSeconds, totalDifferenceAllowed);
qInfo("total difference = %d seconds", totalDifference);
- bool result = (totalDifference <= totalDifferenceAllowed);
+ result = (totalDifference <= totalDifferenceAllowed);
}
if ((knownSsrfRunTimeSeconds > 0) && (actualRunTimeSeconds != knownSsrfRunTimeSeconds)) {
QWARN("Calculated run time does not match known Subsurface runtime");