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>
Thu, 3 Oct 2019 18:09:06 +0000 (14:09 -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 c8a8c63..cc2db0c 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;