diff --git a/tests/src/InventorBuilder.cpp b/tests/src/InventorBuilder.cpp index 29aa9c0a3b..9d990dca61 100644 --- a/tests/src/InventorBuilder.cpp +++ b/tests/src/InventorBuilder.cpp @@ -50,18 +50,19 @@ private Q_SLOTS: output.str(std::string()); } - // Must be the very first test! - void test_Output() - { - QCOMPARE(output.str().c_str(), "#Inventor V2.1 ascii \n\n"); - } - void test_Invalid() { SoNode* node = loadBuffer("Hello, World"); QCOMPARE(node, nullptr); } + void test_Output() + { + std::stringstream str; + Base::InventorBuilder builder(str); + QCOMPARE(str.str().c_str(), "#Inventor V2.1 ascii \n\n"); + } + void test_MaterialBinding_data() { QTest::addColumn("result");