summaryrefslogtreecommitdiff
path: root/src/test/test-cgroup-mask.c
diff options
context:
space:
mode:
authorMartin Pitt <martin@piware.de>2017-02-15 23:37:25 +0100
committerMartin Pitt <martin@piware.de>2017-02-16 21:45:57 +0100
commitcc100a5a9b135d2a033522a2ec60bec013b6ccd1 (patch)
tree01940923d7b14f8ae7e7e90962db85d59a9b3fde /src/test/test-cgroup-mask.c
parentc60b6ddafbd462378073f85e4690455fc3908ad2 (diff)
downloadsystemd-cc100a5a9b135d2a033522a2ec60bec013b6ccd1.tar.gz
systemd-cc100a5a9b135d2a033522a2ec60bec013b6ccd1.tar.bz2
systemd-cc100a5a9b135d2a033522a2ec60bec013b6ccd1.zip
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-cgroup-mask.c')
-rw-r--r--src/test/test-cgroup-mask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-cgroup-mask.c b/src/test/test-cgroup-mask.c
index adcff56bff..b42088c680 100644
--- a/src/test/test-cgroup-mask.c
+++ b/src/test/test-cgroup-mask.c
@@ -35,7 +35,7 @@ static int test_cgroup_mask(void) {
int r;
/* Prepare the manager. */
- 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 (r == -EPERM || r == -EACCES) {