mirror of git://sourceware.org/git/glibc.git
* tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
undefined behavior.
This commit is contained in:
parent
b910f7887b
commit
85047fe3b9
|
|
@ -1,5 +1,8 @@
|
||||||
2003-03-23 Roland McGrath <roland@redhat.com>
|
2003-03-23 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
|
||||||
|
undefined behavior.
|
||||||
|
|
||||||
* tst-join5.c (tf1, tf2): Add a cast.
|
* tst-join5.c (tf1, tf2): Add a cast.
|
||||||
|
|
||||||
* Makeconfig (includes): Append -I$(..)nptl to this variable.
|
* Makeconfig (includes): Append -I$(..)nptl to this variable.
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,12 @@ do_test (void)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pthread_mutex_unlock (&m) != 0)
|
||||||
|
{
|
||||||
|
puts ("final mutex_unlock failed");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (pthread_mutex_destroy (&m) != 0)
|
if (pthread_mutex_destroy (&m) != 0)
|
||||||
{
|
{
|
||||||
puts ("mutex_destroy failed");
|
puts ("mutex_destroy failed");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue