summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/slime
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@yahoo-inc.com>2016-08-24 11:18:47 +0200
committerArnstein Ressem <aressem@yahoo-inc.com>2016-08-24 11:18:47 +0200
commit7d675c89b7e5d43429ce607344a44a1e01324da1 (patch)
tree3588c33c16e9c2ea2a9c1d1e60a7f1c050b1dbb6 /vespalib/src/tests/slime
parentf96cc4fbee54a771e8d432e1842739a012b29148 (diff)
Fixed benchmarks to run out of source (except those not working in source).
Diffstat (limited to 'vespalib/src/tests/slime')
-rw-r--r--vespalib/src/tests/slime/json_slime_benchmark.cpp3
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();