[PATCH] Linux: Implement per-thread file system attributes
Carlos O'Donell
carlos@redhat.com
Fri Jun 28 19:15:00 GMT 2019
On 6/28/19 2:34 PM, Florian Weimer wrote:
> * Carlos O'Donell:
>
>>> if (flag != PTHREAD_PER_THREAD_NP)
>>> TEST_COMPARE (flag, PTHREAD_PER_PROCESS_NP);
>>
>> I don't follow why you can't call this unconditionally?
>
> This asserts that the flag has one of two values, PTHREAD_PER_THREAD_NP
> or PTHREAD_PER_PROCESS_NP.
I still don't follow.
Why can't we just use:
TEST_COMPARE (flag, PTHREAD_PER_PROCESS_NP);
We only expect flag to be PTHREAD_PER_PROCESS_NP.
If flag is PTHREAD_PER_PROCESS_NP then nothing happens.
If it's not PTHREAD_PER_PROCESS_NP then we record the value
along with a failure, but continue running (and will report
a test failure).
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list