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-helper.h | |
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-helper.h')
-rw-r--r-- | src/test/test-helper.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/test/test-helper.h b/src/test/test-helper.h index 7c9eff2483..ddb10f88fd 100644 --- a/src/test/test-helper.h +++ b/src/test/test-helper.h @@ -20,8 +20,6 @@ ***/ #include "sd-daemon.h" -#include "string-util.h" -#include "tests.h" #include "macro.h" @@ -41,6 +39,3 @@ -ENOENT, \ -ENOMEDIUM /* cannot determine cgroup */ \ ) - -#define TEST_DATA_DIR(subdir) \ - strjoina(get_testdata_dir(), subdir) |