diff --git a/tests/gtest/avif_fuzztest_helpers.cc b/tests/gtest/avif_fuzztest_helpers.cc index 307ce0cd91..e3022e2743 100644 --- a/tests/gtest/avif_fuzztest_helpers.cc +++ b/tests/gtest/avif_fuzztest_helpers.cc @@ -223,22 +223,9 @@ ::testing::Environment* SetEnv(const char* name, const char* value) { //------------------------------------------------------------------------------ -#ifdef TEST_DATA_DIRS -// Helper macros to ensure TEST_DATA_DIRS is a quoted string. -// NOTE: TEST_DATA_DIRS must NOT be a quoted string before stringification -// otherwise it will be quoted twice, resulting in the use of an incorrect path. -#define AVIF_TO_STRING(S) #S -#define AVIF_STRINGIFY(S) AVIF_TO_STRING(S) -#endif - std::vector GetSeedDataDirs() { const char* var = std::getenv("TEST_DATA_DIRS"); std::vector res; -#ifdef TEST_DATA_DIRS - if (var == nullptr) { - var = AVIF_STRINGIFY(TEST_DATA_DIRS); - } -#endif if (var == nullptr || *var == 0) return res; const char* var_start = var; while (true) { @@ -252,9 +239,6 @@ std::vector GetSeedDataDirs() { return res; } -#undef AVIF_STRINGIFY -#undef AVIF_TO_STRING - std::vector GetTestImagesContents( size_t max_file_size, const std::vector& image_formats) { // Use an environment variable to get the test data directory because