diff options
Diffstat (limited to 'vespalib/src/tests/testapp-debug/testapp-debug.cpp')
-rw-r--r-- | vespalib/src/tests/testapp-debug/testapp-debug.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vespalib/src/tests/testapp-debug/testapp-debug.cpp b/vespalib/src/tests/testapp-debug/testapp-debug.cpp index 8c75a104cd8..0083200ac51 100644 --- a/vespalib/src/tests/testapp-debug/testapp-debug.cpp +++ b/vespalib/src/tests/testapp-debug/testapp-debug.cpp @@ -4,8 +4,12 @@ using namespace vespalib; TEST_MAIN() { - system("./vespalib_debug_test_app"); - system("diff lhs.out rhs.out > diff.out"); + int status = system("./vespalib_debug_test_app"); + ASSERT_FALSE(WIFSIGNALED(status)); + EXPECT_NOT_EQUAL(0, WEXITSTATUS(status)); + status = system("diff lhs.out rhs.out > diff.out"); + ASSERT_FALSE(WIFSIGNALED(status)); + EXPECT_NOT_EQUAL(0, WEXITSTATUS(status)); std::string diff_cmd("diff diff.out "); |