Browse Source

Trade: minor AbstractSceneConverter test improvement.

pull/559/head
Vladimír Vondruš 4 years ago
parent
commit
3684160db3
  1. 3
      src/Magnum/Trade/Test/AbstractSceneConverterTest.cpp

3
src/Magnum/Trade/Test/AbstractSceneConverterTest.cpp

@ -558,8 +558,9 @@ void AbstractSceneConverterTest::convertMeshToFileThroughDataNotWritable() {
std::ostringstream out;
Error redirectError{&out};
CORRADE_VERIFY(!converter.convertToFile(MeshData{MeshPrimitive::Triangles, 0xef}, "/some/path/that/does/not/exist"));
/* There's an error from Path::write() before */
CORRADE_COMPARE_AS(out.str(),
"Trade::AbstractSceneConverter::convertToFile(): cannot write to file /some/path/that/does/not/exist\n",
"\nTrade::AbstractSceneConverter::convertToFile(): cannot write to file /some/path/that/does/not/exist\n",
TestSuite::Compare::StringHasSuffix);
}

Loading…
Cancel
Save