Make UnitTest return non-zero on any test failure

This commit is contained in:
Stephen Seo 2024-04-30 14:01:21 +09:00
parent 097661346d
commit 2f26496155

View file

@ -571,5 +571,5 @@ int main() {
std::cout << "Checks checked: " << checks_checked << '\n' std::cout << "Checks checked: " << checks_checked << '\n'
<< "Checks passed: " << checks_passed << '\n'; << "Checks passed: " << checks_passed << '\n';
return 0; return checks_checked == checks_passed ? 0 : 1;
} }