]> git.localhorst.tv Git - blank.git/blobdiff - tst/integration/StandaloneTest.cpp
test missing option arguments
[blank.git] / tst / integration / StandaloneTest.cpp
index 240777509a739d58931acf21c5600a9197412545..0431b5778d3f9de636674bcd402c69fd377c3850 100644 (file)
@@ -3,22 +3,25 @@
 #include "TestInstance.hpp"
 
 
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(blank::test::StandaloneTest, "integration");
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(blank::test::StandaloneTest, "headed");
 
 
 namespace blank {
 namespace test {
 
 void StandaloneTest::setUp() {
-       instance.reset(new TestInstance({ "--no-vsync" }));
+       instance.reset(new TestInstance({ "--standalone", "--no-vsync" }));
        instance->AssertRunning();
 }
 
 void StandaloneTest::tearDown() {
        std::unique_ptr<TestInstance> inst(std::move(instance));
-       inst->Terminate();
-       inst->AssertExitStatus(0);
-       inst->AssertNoError();
+       if (inst) {
+               inst->Terminate();
+               inst->AssertNoOutput();
+               inst->AssertNoError();
+               inst->AssertExitStatus(0);
+       }
 }