summaryrefslogtreecommitdiffstats
path: root/vespamalloc/src/tests/thread/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespamalloc/src/tests/thread/thread.cpp')
-rw-r--r--vespamalloc/src/tests/thread/thread.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/vespamalloc/src/tests/thread/thread.cpp b/vespamalloc/src/tests/thread/thread.cpp
index 9053a435d11..6261a0f8eb6 100644
--- a/vespamalloc/src/tests/thread/thread.cpp
+++ b/vespamalloc/src/tests/thread/thread.cpp
@@ -1,7 +1,17 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-#include <vespa/vespalib/testkit/testapp.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <pthread.h>
+#include <stdint.h>
+#include <errno.h>
#include <vespa/vespalib/util/atomic.h>
+#include <sys/resource.h>
+#include <vespa/vespalib/testkit/testapp.h>
+#include <vespa/log/log.h>
+
+LOG_SETUP("thread_test");
using namespace vespalib;
@@ -11,7 +21,7 @@ public:
~Test();
int Main() override;
private:
- bool useIPCHelper() const override { return true; }
+ virtual bool useIPCHelper() const override { return true; }
};
Test::~Test()