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:
Matthew Parkinson
2022-05-09 09:46:24 +01:00
committed by Matthew Parkinson
parent 2d44ae9db4
commit 5906b14586

View File

@@ -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 =