Fix GetFilesInDir_Smoke test

This commit is contained in:
Sergey Yershov 2016-01-27 12:52:45 +03:00
parent 0d80d85e47
commit c4e0087fc7

View file

@ -93,10 +93,10 @@ UNIT_TEST(GetFilesInDir_Smoke)
Platform & pl = GetPlatform();
Platform::FilesList files1, files2;
string const dir = pl.WritableDir();
string const dir = pl.ResourcesDir();
pl.GetFilesByExt(dir, DATA_FILE_EXTENSION, files1);
TEST_GREATER(files1.size(), 0, ("/data/ folder should contain some data files"));
TEST_GREATER(files1.size(), 0, (dir, "folder should contain some data files"));
pl.GetFilesByRegExp(dir, ".*\\" DATA_FILE_EXTENSION "$", files2);
TEST_EQUAL(files1, files2, ());