diff --git a/platform/platform_tests/platform_test.cpp b/platform/platform_tests/platform_test.cpp index 6dfa58228b..419c2cf4ab 100644 --- a/platform/platform_tests/platform_test.cpp +++ b/platform/platform_tests/platform_test.cpp @@ -1,6 +1,9 @@ #include "../../testing/testing.hpp" #include "../platform.hpp" + +#include "../../storage/defines.hpp" + #include "../../std/stdio.hpp" #include "../../base/start_mem_debug.hpp" @@ -72,7 +75,7 @@ UNIT_TEST(GetFilesInDir) { Platform & pl = GetPlatform(); Platform::FilesList files; - TEST_GREATER(pl.GetFilesInDir(pl.WritableDir(), "*.dat", files), 0, ("/data/ folder should contain some *.dat files")); + TEST_GREATER(pl.GetFilesInDir(pl.WritableDir(), "*" DATA_FILE_EXTENSION, files), 0, ("/data/ folder should contain some data files")); TEST_EQUAL(pl.GetFilesInDir(pl.WritableDir(), "asdnonexistentfile.dsa", files), 0, ()); TEST_EQUAL(files.size(), 0, ());