From c8a29c2dfc56648a79807e0d475c7906f03cb73f Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Fri, 14 Apr 2023 12:34:27 -0500 Subject: [PATCH] [LIBC] Actually assert no errors in `pthread_call_once` in its test; NFC Just seemed to be missing an assertion. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D148289 --- libc/test/integration/src/pthread/pthread_once_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/test/integration/src/pthread/pthread_once_test.cpp b/libc/test/integration/src/pthread/pthread_once_test.cpp index 8de2841..2019824 100644 --- a/libc/test/integration/src/pthread/pthread_once_test.cpp +++ b/libc/test/integration/src/pthread/pthread_once_test.cpp @@ -28,7 +28,7 @@ static void pthread_once_func() { ++call_count; } static void *func(void *) { static pthread_once_t flag = PTHREAD_ONCE_INIT; - __llvm_libc::pthread_once(&flag, pthread_once_func); + ASSERT_EQ(__llvm_libc::pthread_once(&flag, pthread_once_func), 0); thread_count.fetch_add(1); -- 2.7.4