aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/slime/slime_json_format_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/slime/slime_json_format_test.cpp')
-rw-r--r--vespalib/src/tests/slime/slime_json_format_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/slime/slime_json_format_test.cpp b/vespalib/src/tests/slime/slime_json_format_test.cpp
index e04bc8aa325..7995584f60b 100644
--- a/vespalib/src/tests/slime/slime_json_format_test.cpp
+++ b/vespalib/src/tests/slime/slime_json_format_test.cpp
@@ -1,6 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/vespalib/testkit/test_kit.h>
+#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/data/slime/slime.h>
#include <iostream>
#include <fstream>
@@ -351,7 +352,7 @@ TEST("decode simplified form") {
}
TEST_F("decode bytes not null-terminated", Slime) {
- std::ifstream file("large_json.txt");
+ std::ifstream file(vespalib::TestApp::GetSourceDirectory() + "large_json.txt");
ASSERT_TRUE(file.is_open());
std::stringstream buf;
buf << file.rdbuf();