]> git.localhorst.tv Git - blank.git/blobdiff - tst/integration/ServerTest.cpp
allow individual closing of process streams
[blank.git] / tst / integration / ServerTest.cpp
index fbec21a70f7cd7d9fe96929c1f717129816f61ee..c5ca60e4f34b12b11c99279abbf030b5fce91b73 100644 (file)
@@ -1,6 +1,6 @@
 #include "ServerTest.hpp"
 
-#include "TestServer.hpp"
+#include "TestInstance.hpp"
 
 CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::ServerTest);
 
@@ -18,7 +18,11 @@ void ServerTest::tearDown() {
 
 
 void ServerTest::testStartup() {
-       TestServer server;
+       TestInstance server({ "--server" }, true);
+       server.AssertRunning();
+       server.Terminate();
+       server.AssertExitStatus(0);
+       server.AssertNoError();
 }
 
 }