From 9a3a7fb10b680850376568a761db11c6bd0163fd Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 11 Sep 2019 19:17:24 +0300 Subject: [PATCH] Fix print of uninitialized value Just fixing a printout in the result file. Change-Id: Id1b4d3ee9879a07f452c5f5a0310a16d72051848 (cherry picked from commit 2d48a5baf07daeabeca8412ca6ff56d9ac92e2ca) --- .../vktSynchronizationTimelineSemaphoreTests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp index c8a8c63..cc2db0c 100644 --- a/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp +++ b/external/vulkancts/modules/vulkan/synchronization/vktSynchronizationTimelineSemaphoreTests.cpp @@ -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(std::numeric_limits::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(std::numeric_limits::max() / maxTimelineValueDifference, 100ull); - checkerThread.start(); timelineBackValue = timelineFrontValue = 1; -- 2.7.4