summaryrefslogtreecommitdiffstats
path: root/juniper/src/test/SrcTestSuite.cpp
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2022-04-06 12:18:08 +0000
committerHåvard Pettersen <havardpe@oath.com>2022-04-08 13:45:13 +0000
commit9fbcf76d088740aacf535e6482f86c833cfae871 (patch)
treec62dcd0f9cdcee9876b37c60f741958c14147f80 /juniper/src/test/SrcTestSuite.cpp
parent69454cef2fe53694eb5541e5f622a4e973c081bf (diff)
remove FastOS_Application
fixup (per application): - maybe ignore SIGPIPE - wire argc/argv untangle Vespa Test Framework strip down deprecated TestApp
Diffstat (limited to 'juniper/src/test/SrcTestSuite.cpp')
-rw-r--r--juniper/src/test/SrcTestSuite.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/juniper/src/test/SrcTestSuite.cpp b/juniper/src/test/SrcTestSuite.cpp
index c26e73341d5..1fcaa6e29de 100644
--- a/juniper/src/test/SrcTestSuite.cpp
+++ b/juniper/src/test/SrcTestSuite.cpp
@@ -28,24 +28,11 @@ SrcTestSuite::SrcTestSuite() :
AddTest(new AuxTest());
}
-/**
- * The SrcTestSuiteApp class holds the main body for running the
- * SrcTestSuite class.
- *
- * @author Knut Omang
- */
-class SrcTestSuiteApp : public vespalib::TestApp {
-public:
- int Main() override;
-};
-
-int SrcTestSuiteApp::Main() {
- juniper::TestEnv te(this, TEST_PATH("../rpclient/testclient.rc").c_str());
+int main(int argc, char **argv) {
+ juniper::TestEnv te(argc, argv, TEST_PATH("../rpclient/testclient.rc").c_str());
SrcTestSuite suite;
suite.Run();
long failures = suite.Report();
suite.Free();
return (int)failures;
}
-
-FASTOS_MAIN(SrcTestSuiteApp);