summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/putoperationtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/distributor/putoperationtest.cpp')
-rw-r--r--storage/src/tests/distributor/putoperationtest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/src/tests/distributor/putoperationtest.cpp b/storage/src/tests/distributor/putoperationtest.cpp
index 011b34cd1e3..d2dc7583229 100644
--- a/storage/src/tests/distributor/putoperationtest.cpp
+++ b/storage/src/tests/distributor/putoperationtest.cpp
@@ -12,6 +12,7 @@
#include <tests/common/dummystoragelink.h>
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/vespalib/text/stringtokenizer.h>
+#include <vespa/vespalib/testkit/testapp.h>
#include <iomanip>
#include <iostream>
#include <memory>
@@ -93,7 +94,8 @@ public:
void setUp() {
_repo.reset(
new DocumentTypeRepo(*ConfigGetter<DocumenttypesConfig>
- ::getConfig("config-doctypes", FileSpec("config-doctypes.cfg"))));
+ ::getConfig("config-doctypes",
+ FileSpec(vespalib::TestApp::GetSourceDirectory() + "config-doctypes.cfg"))));
_html_type = _repo->getDocumentType("text/html");
createLinks();
};