+void TestInstance::AssertNoError() {
+ string error;
+ ExhaustError(error);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(
+ "unexpected error output of test instance " + name,
+ string(""), error);
+}
+
+
+void TestInstance::Terminate() {
+ if (!proc.Terminated()) {
+ proc.Terminate();
+ }
+}
+
+void TestInstance::AssertRunning() {
+ CPPUNIT_ASSERT_MESSAGE(
+ "test instance " + name + " terminated unexpectedly",
+ !proc.Terminated());
+}
+
+void TestInstance::AssertTerminated() {
+ CPPUNIT_ASSERT_MESSAGE(
+ "test instance " + name + " did not terminate as expected",
+ proc.Terminated());
+}