From 334a11e8c15030a3bf4eaf4c26b08d67b561685b Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Thu, 11 Feb 2016 09:01:06 +0100 Subject: [PATCH] containers_cpp: added missing PT_ASSERT calls in hazard_pointer_test --- containers_cpp/test/hazard_pointer_test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/containers_cpp/test/hazard_pointer_test.cc b/containers_cpp/test/hazard_pointer_test.cc index 71f1d2e..c98a57d 100644 --- a/containers_cpp/test/hazard_pointer_test.cc +++ b/containers_cpp/test/hazard_pointer_test.cc @@ -211,7 +211,8 @@ void HazardPointerTest2::DeletePointerCallback(int* to_delete) { bool HazardPointerTest2::SetRelativeGuards() { unsigned int thread_index; - embb_internal_thread_index(&thread_index); + int result = embb_internal_thread_index(&thread_index); + PT_ASSERT(EMBB_SUCCESS == result); unsigned int my_begin = guards_per_phread_count_*thread_index; int guard_number = 0; @@ -451,7 +452,8 @@ void HazardPointerTest2::HazardPointerTest2Post() { void HazardPointerTest2::HazardPointerTest2ThreadMethod() { for (;;) { unsigned int thread_index; - embb_internal_thread_index(&thread_index); + int result = embb_internal_thread_index(&thread_index); + PT_ASSERT(EMBB_SUCCESS == result); if (thread_index == current_master_) { HazardPointerTest2Master(); -- libgit2 0.26.0