]> git.localhorst.tv Git - blank.git/blobdiff - tst/integration/StandaloneTest.cpp
fix head reset of LineBuffer after extraction
[blank.git] / tst / integration / StandaloneTest.cpp
index 6ad5f77fdcc1957470b424106745d7d9955a0d87..240777509a739d58931acf21c5600a9197412545 100644 (file)
@@ -2,29 +2,28 @@
 
 #include "TestInstance.hpp"
 
-CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::StandaloneTest);
+
+CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(blank::test::StandaloneTest, "integration");
 
 
 namespace blank {
 namespace test {
 
 void StandaloneTest::setUp() {
-
+       instance.reset(new TestInstance({ "--no-vsync" }));
+       instance->AssertRunning();
 }
 
 void StandaloneTest::tearDown() {
-
+       std::unique_ptr<TestInstance> inst(std::move(instance));
+       inst->Terminate();
+       inst->AssertExitStatus(0);
+       inst->AssertNoError();
 }
 
 
 void StandaloneTest::testStartup() {
-       TestInstance standalone({ "--no-vsync" });
-       standalone.AssertRunning();
-       standalone.AssertOutputLine("chunk preloading complete");
-       standalone.Terminate();
-       standalone.AssertExitStatus(0);
-       // can't do that because AL blurts out nonsense
-       //standalone.AssertNoError();
+       instance->AssertOutputLine("chunk preloading complete");
 }
 
 }