From e3ab59fb2f7446f23b5cabb515db622bd2cc327c Mon Sep 17 00:00:00 2001 From: nadavi Date: Wed, 11 Sep 2019 12:40:16 -0600 Subject: [PATCH] limit the count to the actual number of function calls --- vtkm/cont/testing/UnitTestError.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vtkm/cont/testing/UnitTestError.cxx b/vtkm/cont/testing/UnitTestError.cxx index a8635fbbb..84316d8ee 100644 --- a/vtkm/cont/testing/UnitTestError.cxx +++ b/vtkm/cont/testing/UnitTestError.cxx @@ -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())),