From e00a5243ec28a9db8c430c3f1a10fa54da34cb57 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 1 Dec 2022 22:11:49 +0100 Subject: [PATCH] Test: [skip ci] make sure tests pass in any order --- tests/src/InventorBuilder.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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");