From d15a1db42846c4bee895baa9f490985c7136e0b8 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Sun, 30 Aug 2015 15:40:34 +1000 Subject: TestPlan: Do not re-declare bool result Fixing this error makes TestPlan pass again. Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- tests/testplan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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"); -- cgit v1.2.3-70-g09d2