From 536beb1306ec05184999f4409be937aad1f6a282 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 17 Dec 2018 11:30:13 -0700 Subject: [PATCH] test: Use regular assert in allocate_threads This allows us to call it during test set up instead of only within a unit test. Change-Id: I2daae8d630729b5e0712057766a3cba8812109e9 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/437479 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Changpeng Liu Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- test/common/lib/ut_multithread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/lib/ut_multithread.c b/test/common/lib/ut_multithread.c index 6ea5fc461..763020ddc 100644 --- a/test/common/lib/ut_multithread.c +++ b/test/common/lib/ut_multithread.c @@ -85,12 +85,12 @@ allocate_threads(int num_threads) g_ut_num_threads = num_threads; g_ut_threads = calloc(num_threads, sizeof(*g_ut_threads)); - SPDK_CU_ASSERT_FATAL(g_ut_threads != NULL); + assert(g_ut_threads != NULL); for (i = 0; i < g_ut_num_threads; i++) { set_thread(i); thread = spdk_allocate_thread(NULL, NULL, NULL, NULL, NULL); - SPDK_CU_ASSERT_FATAL(thread != NULL); + assert(thread != NULL); g_ut_threads[i].thread = thread; }