diff options
Diffstat (limited to 'config/src/tests/print/print.cpp')
-rw-r--r-- | config/src/tests/print/print.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/src/tests/print/print.cpp b/config/src/tests/print/print.cpp index f0f0570f2a9..761a3b32f73 100644 --- a/config/src/tests/print/print.cpp +++ b/config/src/tests/print/print.cpp @@ -1,7 +1,6 @@ // 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/config/config.h> #include <vespa/config/print.h> #include <vespa/config/print/fileconfigreader.h> @@ -84,7 +83,7 @@ TEST_F("requireThatCanLoadWrittenWithConfigFormat", RawFixture<MyConfig>) { TEST("requireThatAllFieldsArePrintedCorrectly") { std::unique_ptr<MotdConfig> cfg = ConfigGetter<MotdConfig>::getConfig( - "motd", FileSpec(vespalib::TestApp::GetSourceDirectory() + "motd.cfg")); + "motd", FileSpec(TEST_PATH("motd.cfg"))); FileConfigWriter writer("motd2.cfg"); ASSERT_TRUE(writer.write(*cfg, FileConfigFormatter())); std::unique_ptr<MotdConfig> cfg2 = ConfigGetter<MotdConfig>::getConfig( |