From 143c9fd08d95932d6908bdbdd6bf37281e55a725 Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 13 Apr 2015 21:34:59 +0200 Subject: [PATCH] Made test 10x longer. --- tests/testvolume.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testvolume.cpp b/tests/testvolume.cpp index a35cdaa6..08747e68 100644 --- a/tests/testvolume.cpp +++ b/tests/testvolume.cpp @@ -225,7 +225,7 @@ int32_t testDirectRandomAccess(const VolumeType* volume) std::mt19937 rng; int32_t result = 0; - for (uint32_t ct = 0; ct < 1000000; ct++) + for (uint32_t ct = 0; ct < 10000000; ct++) { uint32_t rand = rng(); @@ -490,7 +490,7 @@ void TestVolume::testRawVolumeDirectRandomAccess() { result = testDirectRandomAccess(m_pRawVolume); } - QCOMPARE(result, static_cast(267192737)); + QCOMPARE(result, static_cast(171835633)); } void TestVolume::testPagedVolumeDirectRandomAccess() @@ -500,7 +500,7 @@ void TestVolume::testPagedVolumeDirectRandomAccess() { result = testDirectRandomAccess(m_pPagedVolumeHighMem); } - QCOMPARE(result, static_cast(267192737)); + QCOMPARE(result, static_cast(171835633)); } int32_t TestVolume::testPagedVolumeChunkAccess(uint16_t localityMask)