mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 05:20:06 +00:00
stdlib: Fix tst-makecontext2 log when swapcontext fails
The log incorrectly prints, setcontext failed. Update this to indicate that actually swapcontext failed. Signed-off-by: Stafford Horne <shorne@gmail.com> Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
ad05a42370
commit
4a13b3ef46
@ -63,7 +63,7 @@ do_test (void)
|
|||||||
makecontext (&ucp, (void (*) (void)) cf, 2, 78, 274);
|
makecontext (&ucp, (void (*) (void)) cf, 2, 78, 274);
|
||||||
if (swapcontext (&ucp2, &ucp) != 0)
|
if (swapcontext (&ucp2, &ucp) != 0)
|
||||||
{
|
{
|
||||||
puts ("setcontext failed");
|
puts ("swapcontext failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user