summaryrefslogtreecommitdiff
path: root/src/shared/tests.h
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/shared/tests.h
parentc60b6ddafbd462378073f85e4690455fc3908ad2 (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/shared/tests.h')
-rw-r--r--src/shared/tests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/tests.h b/src/shared/tests.h
index 927b9fc2bb..7055124990 100644
--- a/src/shared/tests.h
+++ b/src/shared/tests.h
@@ -20,4 +20,4 @@
***/
char* setup_fake_runtime_dir(void);
-const char* get_testdata_dir(void);
+const char* get_testdata_dir(const char *suffix);