summaryrefslogtreecommitdiffstats
path: root/juniper/src/test/matchobjectTestApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juniper/src/test/matchobjectTestApp.cpp')
-rw-r--r--juniper/src/test/matchobjectTestApp.cpp25
1 files changed, 7 insertions, 18 deletions
diff --git a/juniper/src/test/matchobjectTestApp.cpp b/juniper/src/test/matchobjectTestApp.cpp
index 6a595e07983..7fae5b4c0de 100644
--- a/juniper/src/test/matchobjectTestApp.cpp
+++ b/juniper/src/test/matchobjectTestApp.cpp
@@ -4,21 +4,10 @@
#include "testenv.h"
#include <vespa/vespalib/testkit/testapp.h>
-/**
- * The MatchObjectTestApp class is the main routine for running the unit
- * tests for the MatchObject class in isolation.
- *
- * @sa MatchObject @author Knut Omang
- */
-class MatchObjectTestApp : public vespalib::TestApp {
-public:
- int Main() override {
- juniper::TestEnv te(this, TEST_PATH("../rpclient/testclient.rc").c_str());
- MatchObjectTest test;
- test.SetStream(&std::cout);
- test.Run(_argc, _argv);
- return (int)test.Report();
- }
-};
-
-FASTOS_MAIN(MatchObjectTestApp);
+int main(int argc, char **argv) {
+ juniper::TestEnv te(argc, argv, TEST_PATH("../rpclient/testclient.rc").c_str());
+ MatchObjectTest test;
+ test.SetStream(&std::cout);
+ test.Run(argc, argv);
+ return (int)test.Report();
+}