diff --git a/tests/testvolume.cpp b/tests/testvolume.cpp index 6910abf0..d17d4e4b 100644 --- a/tests/testvolume.cpp +++ b/tests/testvolume.cpp @@ -481,6 +481,16 @@ void TestVolume::testPagedVolumeSamplersWithExternalBackwards() /* * Random access tests */ +void TestVolume::testRawVolumeDirectRandomAccess() +{ + int32_t result = 0; + QBENCHMARK + { + result = testDirectRandomAccess(m_pRawVolume); + } + QCOMPARE(result, static_cast(805464457)); +} + void TestVolume::testPagedVolumeDirectRandomAccess() { int32_t result = 0; diff --git a/tests/testvolume.h b/tests/testvolume.h index e189cbc9..a7645977 100644 --- a/tests/testvolume.h +++ b/tests/testvolume.h @@ -57,6 +57,7 @@ private slots: void testPagedVolumeDirectAccessWithExternalBackwards(); void testPagedVolumeSamplersWithExternalBackwards(); + void testRawVolumeDirectRandomAccess(); void testPagedVolumeDirectRandomAccess(); void testPagedVolumeChunkLocalAccess();