From c08d4e862ede93ab5d1d3f2338100a1cf84d55e4 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 18 Feb 2017 00:43:45 -0600 Subject: [PATCH] PPC Testing: Don't discover . and .. --- src/xenia/cpu/ppc/testing/ppc_testing_main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/cpu/ppc/testing/ppc_testing_main.cc b/src/xenia/cpu/ppc/testing/ppc_testing_main.cc index 443159f92..f2c5d701d 100644 --- a/src/xenia/cpu/ppc/testing/ppc_testing_main.cc +++ b/src/xenia/cpu/ppc/testing/ppc_testing_main.cc @@ -359,7 +359,8 @@ bool DiscoverTests(std::wstring& test_path, std::vector& test_files) { auto file_infos = xe::filesystem::ListFiles(test_path); 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)); } }