Skip to content
Commit 20b6b8e8 authored by Frédéric Bérat's avatar Frédéric Bérat Committed by Siddhesh Poyarekar
Browse files

tests: replace read by xread



With fortification enabled, read calls return result needs to be checked,
has it gets the __wur macro enabled.

Note on read call removal from  sysdeps/pthread/tst-cancel20.c and
sysdeps/pthread/tst-cancel21.c:
It is assumed that this second read call was there to overcome the race
condition between pipe closure and thread cancellation that could happen
in the original code. Since this race condition got fixed by
d0e3ffb7 the second call seems
superfluous. Hence, instead of checking for the return value of read, it
looks reasonable to simply remove it.
Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent cf30aa43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment