From f83bbc01ad0fe3d2cb435362af7de6baf590647d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 1 Jan 2016 21:51:23 +0100 Subject: [PATCH] Don't compare random memory in PixelStorage GL test. --- src/Magnum/Test/PixelStorageGLTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/Test/PixelStorageGLTest.cpp b/src/Magnum/Test/PixelStorageGLTest.cpp index 7a1b33685..fd2a1aff3 100644 --- a/src/Magnum/Test/PixelStorageGLTest.cpp +++ b/src/Magnum/Test/PixelStorageGLTest.cpp @@ -224,6 +224,11 @@ void PixelStorageGLTest::unpack3D() { MAGNUM_VERIFY_NO_ERROR(); + /* Clear padding in the last row (the driver might leave them untouched, + confirmed on NVidia 358.16) */ + CORRADE_VERIFY(actual.data().size() == Containers::ArrayView{ActualData}.size()); + *(actual.data().end() - 1) = *(actual.data().end() - 2) = 0; + CORRADE_COMPARE_AS(actual.data(), Containers::ArrayView{ActualData}, TestSuite::Compare::Container); #endif