Gracefully handle test suites failing to load without exiting.

This commit is contained in:
Dr. Chat 2017-05-11 15:58:29 -05:00
parent 747f7d65d8
commit 7e9d63e33d
1 changed files with 2 additions and 1 deletions

View File

@ -435,9 +435,10 @@ bool RunTests(const std::wstring& test_name) {
test_suites.push_back(std::move(test_suite));
}
if (load_failed) {
return false;
XELOGE("One or more test suites failed to load.");
}
XELOGI("%d tests loaded.", (int)test_suites.size());
TestRunner runner;
for (auto& test_suite : test_suites) {
XELOGI("%ls.s:", test_suite.name.c_str());