Out-of-memory can fail silently
If this test fails to allocate memory, that should not cause the test to fail. The 'abort' was added previously to confirm a infrequent failure was caused by out-of-memory causing the test to assign to nullptr. This was confirmed in a CI run, and now the test can be made to ignore allocation failure.
This commit is contained in:
committed by
Matthew Parkinson
parent
2d44ae9db4
commit
5906b14586
@@ -90,7 +90,7 @@ void test_tasks_f(size_t id)
|
||||
else
|
||||
{
|
||||
std::cout << "Failed to allocate " << size << " bytes" << std::endl;
|
||||
abort();
|
||||
// Continue as this is not an important failure.
|
||||
}
|
||||
|
||||
size_t* out =
|
||||
|
||||
Reference in New Issue
Block a user