Gracefully handle test suites failing to load without exiting.
This commit is contained in:
parent
747f7d65d8
commit
7e9d63e33d
|
@ -435,9 +435,10 @@ bool RunTests(const std::wstring& test_name) {
|
||||||
test_suites.push_back(std::move(test_suite));
|
test_suites.push_back(std::move(test_suite));
|
||||||
}
|
}
|
||||||
if (load_failed) {
|
if (load_failed) {
|
||||||
return false;
|
XELOGE("One or more test suites failed to load.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XELOGI("%d tests loaded.", (int)test_suites.size());
|
||||||
TestRunner runner;
|
TestRunner runner;
|
||||||
for (auto& test_suite : test_suites) {
|
for (auto& test_suite : test_suites) {
|
||||||
XELOGI("%ls.s:", test_suite.name.c_str());
|
XELOGI("%ls.s:", test_suite.name.c_str());
|
||||||
|
|
Loading…
Reference in New Issue