PPC Testing: Don't discover . and ..

This commit is contained in:
Dr. Chat 2017-02-18 00:43:45 -06:00
parent 5fb16b5bfa
commit c08d4e862e
1 changed files with 2 additions and 1 deletions

View File

@ -359,7 +359,8 @@ bool DiscoverTests(std::wstring& test_path,
std::vector<std::wstring>& test_files) { std::vector<std::wstring>& test_files) {
auto file_infos = xe::filesystem::ListFiles(test_path); auto file_infos = xe::filesystem::ListFiles(test_path);
for (auto& file_info : file_infos) { for (auto& file_info : file_infos) {
if (file_info.name.rfind(L".s") == file_info.name.size() - 2) { if (file_info.name != L"." && file_info.name != L".." &&
file_info.name.rfind(L".s") == file_info.name.size() - 2) {
test_files.push_back(xe::join_paths(test_path, file_info.name)); test_files.push_back(xe::join_paths(test_path, file_info.name));
} }
} }