[libc-commits] [PATCH] D148289: [LIBC] Actually assert no errors in `pthread_call_once` in its test; NFC

Noah Goldstein via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 14 11:14:49 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc8a29c2dfc56: [LIBC] Actually assert no errors in `pthread_call_once` in its test; NFC (authored by goldstein.w.n).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148289/new/

https://reviews.llvm.org/D148289

Files:
  libc/test/integration/src/pthread/pthread_once_test.cpp


Index: libc/test/integration/src/pthread/pthread_once_test.cpp
===================================================================
--- libc/test/integration/src/pthread/pthread_once_test.cpp
+++ libc/test/integration/src/pthread/pthread_once_test.cpp
@@ -28,7 +28,7 @@
 
 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);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148289.513683.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230414/1cdb4410/attachment.bin>


More information about the libc-commits mailing list