]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/tests.h
test: drop TEST_DATA_DIR, fold into get_testdata_dir()
authorMartin Pitt <martin@piware.de>
Wed, 15 Feb 2017 22:37:25 +0000 (23:37 +0100)
committerMartin Pitt <martin@piware.de>
Thu, 16 Feb 2017 20:45:57 +0000 (21:45 +0100)
commitcc100a5a9b135d2a033522a2ec60bec013b6ccd1
tree01940923d7b14f8ae7e7e90962db85d59a9b3fde
parentc60b6ddafbd462378073f85e4690455fc3908ad2
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.
src/resolve/test-dns-packet.c
src/shared/tests.c
src/shared/tests.h
src/test/test-cgroup-mask.c
src/test/test-engine.c
src/test/test-execute.c
src/test/test-helper.h
src/test/test-journal-importer.c
src/test/test-path.c
src/test/test-sched-prio.c