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.
This commit is contained in:
Martin Pitt
2017-02-16 21:45:57 +01:00
parent c60b6ddafb
commit cc100a5a9b
10 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -20,4 +20,4 @@
***/
char* setup_fake_runtime_dir(void);
const char* get_testdata_dir(void);
const char* get_testdata_dir(const char *suffix);