[PATCH] Fix test failure with -DNDEBUG.

Florian Weimer fweimer@redhat.com
Thu Aug 30 15:13:00 GMT 2018


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



More information about the Libc-alpha mailing list