This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix test failure with -DNDEBUG.


On 08/30/2018 05:08 PM, Carlos O'Donell wrote:
        rc = pthread_create (&thr, NULL, fn, NULL);
-      assert (rc == 0);
+      TEST_VERIFY (rc == 0);
rc = pthread_join (thr, NULL);
-      assert (rc == 0);
+      TEST_VERIFY (rc == 0);

Both should actually be TEST_VERIFY_EXIT, I assume, and that would be close to xpthread_create and xpthread_join.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]