diff options
author | Håvard Pettersen <havardpe@oath.com> | 2022-04-06 12:18:08 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2022-04-08 13:45:13 +0000 |
commit | 9fbcf76d088740aacf535e6482f86c833cfae871 (patch) | |
tree | c62dcd0f9cdcee9876b37c60f741958c14147f80 /vespalog | |
parent | 69454cef2fe53694eb5541e5f622a4e973c081bf (diff) |
remove FastOS_Application
fixup (per application):
- maybe ignore SIGPIPE
- wire argc/argv
untangle Vespa Test Framework
strip down deprecated TestApp
Diffstat (limited to 'vespalog')
-rw-r--r-- | vespalog/src/test/threads/testthreads.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/vespalog/src/test/threads/testthreads.cpp b/vespalog/src/test/threads/testthreads.cpp index af0fe509080..d1767dd70ff 100644 --- a/vespalog/src/test/threads/testthreads.cpp +++ b/vespalog/src/test/threads/testthreads.cpp @@ -1,5 +1,4 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/app.h> #include <vespa/fastos/thread.h> #include <vespa/log/bufferedlogger.h> #include <array> @@ -77,10 +76,17 @@ LoggerThread::Run(FastOS_ThreadInterface *, void *) } -class ThreadTester : public FastOS_Application +class ThreadTester { public: - int Main() override; + int _argc = 0; + char **_argv = nullptr; + int Main(); + int Entry(int argc, char **argv) { + _argc = argc; + _argv = argv; + return Main(); + } }; int |