limit the count to the actual number of function calls

This commit is contained in:
nadavi 2019-09-11 12:40:16 -06:00
parent b71421c8a0
commit e3ab59fb2f

@ -47,7 +47,8 @@ void ValidateError(const vtkm::cont::Error& error)
}
else
{
VTKM_TEST_ASSERT(count > 11, "StackTrace did not recurse enough");
std::string assert_msg = "StackTrace did not recurse enough: " + std::to_string(count);
VTKM_TEST_ASSERT(count > 6, assert_msg);
}
VTKM_TEST_ASSERT(test_equal(message, error.GetMessage()), "Message was incorrect");
VTKM_TEST_ASSERT(test_equal(message + "\n" + stackTrace, std::string(error.what())),