From bafc0bae9de4449df23f84dd2f3a5a9cc496a410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 21 Jan 2025 22:24:21 +0100 Subject: [PATCH] Test: this test is redundant now. It's handled by the usual view size assertion, should have removed that in e43eba68dbba3797a6fb477f30efa1f3788f139b already. --- src/Magnum/Test/ImageViewTest.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Magnum/Test/ImageViewTest.cpp b/src/Magnum/Test/ImageViewTest.cpp index b918f6823..91aed819d 100644 --- a/src/Magnum/Test/ImageViewTest.cpp +++ b/src/Magnum/Test/ImageViewTest.cpp @@ -60,7 +60,6 @@ struct ImageViewTest: TestSuite::Tester { void constructFromMutable(); void constructCompressedFromMutable(); - void constructNullptr(); void constructUnknownImplementationSpecificPixelSize(); void constructInvalidSize(); void constructInvalidCubeMap(); @@ -116,7 +115,6 @@ ImageViewTest::ImageViewTest() { &ImageViewTest::constructFromMutable, &ImageViewTest::constructCompressedFromMutable, - &ImageViewTest::constructNullptr, &ImageViewTest::constructUnknownImplementationSpecificPixelSize, &ImageViewTest::constructInvalidSize, &ImageViewTest::constructInvalidCubeMap, @@ -657,15 +655,6 @@ void ImageViewTest::constructCompressedFromMutable() { CORRADE_COMPARE(b.data().size(), 8); } -void ImageViewTest::constructNullptr() { - CORRADE_SKIP_IF_NO_ASSERT(); - - Containers::String out; - Error redirectError{&out}; - ImageView2D{PixelFormat::RGB8Unorm, {1, 3}, nullptr}; - CORRADE_COMPARE(out, "ImageView: data too small, got 0 but expected at least 12 bytes\n"); -} - void ImageViewTest::constructUnknownImplementationSpecificPixelSize() { CORRADE_SKIP_IF_NO_ASSERT();