diff options
author | Martin Pitt <martin@piware.de> | 2017-02-15 23:37:25 +0100 |
---|---|---|
committer | Martin Pitt <martin@piware.de> | 2017-02-16 21:45:57 +0100 |
commit | cc100a5a9b135d2a033522a2ec60bec013b6ccd1 (patch) | |
tree | 01940923d7b14f8ae7e7e90962db85d59a9b3fde /src/test/test-engine.c | |
parent | c60b6ddafbd462378073f85e4690455fc3908ad2 (diff) |
test: drop TEST_DATA_DIR, fold into get_testdata_dir()
Drop the TEST_DATA_DIR macro as this was using alloca() within a
function call which is allegedly unsafe. So add a "suffix" argument to
get_testdata_dir() instead and call that directly.
Diffstat (limited to 'src/test/test-engine.c')
-rw-r--r-- | src/test/test-engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-engine.c b/src/test/test-engine.c index 3c0c18b188..8133343fb3 100644 --- a/src/test/test-engine.c +++ b/src/test/test-engine.c @@ -38,7 +38,7 @@ int main(int argc, char *argv[]) { int r; /* prepare the test */ - assert_se(set_unit_path(TEST_DATA_DIR("")) >= 0); + assert_se(set_unit_path(get_testdata_dir("")) >= 0); assert_se(runtime_dir = setup_fake_runtime_dir()); r = manager_new(UNIT_FILE_USER, true, &m); if (MANAGER_SKIP_TEST(r)) { |