diff --git a/src/Magnum/Trade/Test/MeshDataTest.cpp b/src/Magnum/Trade/Test/MeshDataTest.cpp index e5954cc43..24db33800 100644 --- a/src/Magnum/Trade/Test/MeshDataTest.cpp +++ b/src/Magnum/Trade/Test/MeshDataTest.cpp @@ -26,10 +26,12 @@ #include #include +#include /** @todo remove once Debug is stream-free */ #include #include +#include #include -#include +#include /** @todo remove once Debug is stream-free */ #include "Magnum/Math/Color.h" #include "Magnum/Math/Half.h" @@ -3958,7 +3960,7 @@ void MeshDataTest::attributeNotFound() { data.weightsAsArray(2); data.weightsInto(nullptr, 2); data.objectIdsAsArray(); - CORRADE_COMPARE(out.str(), + CORRADE_COMPARE_AS(out.str(), "Trade::MeshData::attributeData(): index 6 out of range for 6 attributes\n" "Trade::MeshData::attributeName(): index 6 out of range for 6 attributes\n" "Trade::MeshData::attributeId(): index 6 out of range for 6 attributes\n" @@ -4008,7 +4010,8 @@ void MeshDataTest::attributeNotFound() { "Trade::MeshData::jointIdsInto(): index 2 out of range for 2 joint ID attributes\n" "Trade::MeshData::weightsAsArray(): index 2 out of range for 2 weight attributes\n" "Trade::MeshData::weightsInto(): index 2 out of range for 2 weight attributes\n" - "Trade::MeshData::objectIdsInto(): index 0 out of range for 0 object ID attributes\n"); + "Trade::MeshData::objectIdsInto(): index 0 out of range for 0 object ID attributes\n", + TestSuite::Compare::String); } void MeshDataTest::attributeWrongType() { diff --git a/src/Magnum/Trade/Test/SceneDataTest.cpp b/src/Magnum/Trade/Test/SceneDataTest.cpp index 889c96b81..13fc35e4d 100644 --- a/src/Magnum/Trade/Test/SceneDataTest.cpp +++ b/src/Magnum/Trade/Test/SceneDataTest.cpp @@ -6733,7 +6733,7 @@ void SceneDataTest::fieldNotFound() { scene.importerStateAsArray(); scene.importerStateInto(nullptr, nullptr); scene.importerStateInto(0, nullptr, nullptr); - CORRADE_COMPARE(out.str(), + CORRADE_COMPARE_AS(out.str(), "Trade::SceneData::findFieldObjectOffset(): index 2 out of range for 2 fields\n" "Trade::SceneData::fieldObjectOffset(): index 2 out of range for 2 fields\n" "Trade::SceneData::hasFieldObject(): index 2 out of range for 2 fields\n" @@ -6814,7 +6814,8 @@ void SceneDataTest::fieldNotFound() { "Trade::SceneData::skinsInto(): field not found\n" "Trade::SceneData::importerStateInto(): field not found\n" "Trade::SceneData::importerStateInto(): field not found\n" - "Trade::SceneData::importerStateInto(): field not found\n"); + "Trade::SceneData::importerStateInto(): field not found\n", + TestSuite::Compare::String); } void SceneDataTest::fieldWrongType() {