diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2017-02-17 11:38:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 11:38:23 +0300 |
commit | f73e6ee687213d8f78a93a9519901d0fe314c228 (patch) | |
tree | 30e41a1b946ad8391f806be4cb85250b97732715 /src/test/test-execute.c | |
parent | 5c1be4f73082d09011661516c39fb53626d8bdc7 (diff) | |
parent | e53bcabb4b885ec998cc693e0788c3d68617bef2 (diff) |
Merge pull request #5338 from mbiebl/fix-install-tests-target
Fix "make install-tests" when srcdir != builddir, fix valgrind-tests
Diffstat (limited to 'src/test/test-execute.c')
-rw-r--r-- | src/test/test-execute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c index 145aa37a66..90540b884b 100644 --- a/src/test/test-execute.c +++ b/src/test/test-execute.c @@ -35,6 +35,7 @@ #endif #include "stat-util.h" #include "test-helper.h" +#include "tests.h" #include "unit.h" #include "util.h" #include "virt.h" @@ -516,7 +517,7 @@ int main(int argc, char *argv[]) { } assert_se(setenv("XDG_RUNTIME_DIR", "/tmp/", 1) == 0); - assert_se(set_unit_path(TEST_DATA_DIR("/test-execute/")) >= 0); + assert_se(set_unit_path(get_testdata_dir("/test-execute")) >= 0); /* Unset VAR1, VAR2 and VAR3 which are used in the PassEnvironment test * cases, otherwise (and if they are present in the environment), |