Fix print of uninitialized value
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 11 Sep 2019 16:17:24 +0000 (19:17 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 30 Sep 2019 13:23:20 +0000 (09:23 -0400)
Just fixing a printout in the result file.

Change-Id: Id1b4d3ee9879a07f452c5f5a0310a16d72051848
(cherry picked from commit 2d48a5baf07daeabeca8412ca6ff56d9ac92e2ca)

external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp

index 9304673..a06d98a 100644 (file)
@@ -467,17 +467,17 @@ tcu::TestStatus maxDifferenceValueCase (Context& context)
        deUint64                                                                                timelineBackValue;
        deUint64                                                                                timelineFrontValue;
 
+       if (maxTimelineValueDifference < requiredMinValueDifference)
+               return tcu::TestStatus::fail("Timeline semaphore max value difference test failed");
+
+       iterations = std::min<deUint64>(std::numeric_limits<deUint64>::max() / maxTimelineValueDifference, 100ull);
+
        log << TestLog::Message
                << " maxTimelineSemaphoreValueDifference=" << maxTimelineValueDifference
                << " maxExpected=" << requiredMinValueDifference
                << " iterations=" << iterations
                << TestLog::EndMessage;
 
-       if (maxTimelineValueDifference < requiredMinValueDifference)
-               return tcu::TestStatus::fail("Timeline semaphore max value difference test failed");
-
-       iterations = std::min<deUint64>(std::numeric_limits<deUint64>::max() / maxTimelineValueDifference, 100ull);
-
        checkerThread.start();
 
        timelineBackValue = timelineFrontValue = 1;