summaryrefslogtreecommitdiffstats
path: root/juniper/src/test/mcandTestApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juniper/src/test/mcandTestApp.cpp')
-rw-r--r--juniper/src/test/mcandTestApp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/juniper/src/test/mcandTestApp.cpp b/juniper/src/test/mcandTestApp.cpp
index 7bbc9681d21..fb331ac2b2a 100644
--- a/juniper/src/test/mcandTestApp.cpp
+++ b/juniper/src/test/mcandTestApp.cpp
@@ -18,6 +18,7 @@
****************************************************************************/
#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
+#include <vespa/vespalib/testkit/testapp.h>
LOG_SETUP("mcandTest");
#include "mcandTest.h"
#include "testenv.h"
@@ -28,10 +29,10 @@ LOG_SETUP("mcandTest");
*
* @sa MatchCandidate @author Knut Omang
*/
-class MatchCandidateTestApp : public FastOS_Application {
+class MatchCandidateTestApp : public vespalib::TestApp {
public:
virtual int Main() {
- juniper::TestEnv te(this, "../rpclient/testclient.rc");
+ juniper::TestEnv te(this, (GetSourceDirectory() + "../rpclient/testclient.rc").c_str());
MatchCandidateTest test;
test.SetStream(&std::cout);
test.Run(_argc, _argv);