diff options
Diffstat (limited to 'vespalib/src/tests/testapp-debug/testapp-debug.cpp')
-rw-r--r-- | vespalib/src/tests/testapp-debug/testapp-debug.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vespalib/src/tests/testapp-debug/testapp-debug.cpp b/vespalib/src/tests/testapp-debug/testapp-debug.cpp index 7b332220f1d..cbe032f19f8 100644 --- a/vespalib/src/tests/testapp-debug/testapp-debug.cpp +++ b/vespalib/src/tests/testapp-debug/testapp-debug.cpp @@ -1,11 +1,16 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> #include <vespa/vespalib/testkit/test_kit.h> +#include <vespa/vespalib/testkit/testapp.h> using namespace vespalib; TEST_MAIN() { system("./vespalib_debug_test_app"); system("diff lhs.out rhs.out > diff.out"); - EXPECT_EQUAL(system("diff diff.out diff.ref"), 0); + + + std::string diff_cmd("diff diff.out "); + diff_cmd += vespalib::TestApp::GetSourceDirectory() + "diff.ref"; + EXPECT_EQUAL(system(diff_cmd.c_str()), 0); } |