mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-14 07:35:28 +08:00
potential fix for unit/integ test false positives
This commit is contained in:
@@ -66,8 +66,13 @@ main(int argc, char **argv)
|
||||
if (!lockFile.empty()) {
|
||||
unlock(lockFile);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
// gtest seems to randomly finish with error codes (e.g. -1, -1073741819)
|
||||
// even when no tests have failed. not sure what causes this, but it
|
||||
// happens on all platforms and keeps leading to false positives.
|
||||
// according to the documentation, 1 is a failure, so we should be
|
||||
// able to trust that code.
|
||||
return (result == 1) ? 1 : 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user