summaryrefslogtreecommitdiffstats
path: root/document/src/tests/struct_anno/struct_anno_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/tests/struct_anno/struct_anno_test.cpp')
-rw-r--r--document/src/tests/struct_anno/struct_anno_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/document/src/tests/struct_anno/struct_anno_test.cpp b/document/src/tests/struct_anno/struct_anno_test.cpp
index 2c1b7fb9fe6..d87d513ab89 100644
--- a/document/src/tests/struct_anno/struct_anno_test.cpp
+++ b/document/src/tests/struct_anno/struct_anno_test.cpp
@@ -47,10 +47,9 @@ int Test::Main() {
template <typename T, int N> int arraysize(const T (&)[N]) { return N; }
void Test::requireThatStructFieldsCanContainAnnotations() {
- DocumentTypeRepo repo(readDocumenttypesConfig(vespalib::TestApp::GetSourceDirectory()
- + "documenttypes.cfg"));
+ DocumentTypeRepo repo(readDocumenttypesConfig(TEST_PATH("documenttypes.cfg")));
- FastOS_File file((vespalib::TestApp::GetSourceDirectory() + "document.dat").c_str());
+ FastOS_File file(TEST_PATH("document.dat").c_str());
ASSERT_TRUE(file.OpenReadOnlyExisting());
char buffer[1024];
ssize_t size = file.Read(buffer, arraysize(buffer));