diff options
Diffstat (limited to 'vespalib/src/tests/slime/json_slime_benchmark.cpp')
-rw-r--r-- | vespalib/src/tests/slime/json_slime_benchmark.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/slime/json_slime_benchmark.cpp b/vespalib/src/tests/slime/json_slime_benchmark.cpp index c3fc9aae8fa..73c5dbceab6 100644 --- a/vespalib/src/tests/slime/json_slime_benchmark.cpp +++ b/vespalib/src/tests/slime/json_slime_benchmark.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/data/slime/slime.h> +#include <vespa/vespalib/testkit/testapp.h> #include <iostream> #include <fstream> #include <sstream> @@ -36,7 +37,7 @@ int main(int argc, char *argv[]) if (argc > 1) { numRep = strtoul(argv[1], 0, 0); } - std::ifstream file("large_json.txt"); + std::ifstream file((vespalib::TestApp::GetSourceDirectory() + "large_json.txt").c_str()); assert(file.is_open()); std::stringstream buf; buf << file.rdbuf(); |