mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
Update.
2004-04-04 Ulrich Drepper <drepper@redhat.com> * tst-context1.c (fct): Check whether correct stack is used.
This commit is contained in:
parent
53de11add6
commit
e6eb894e8d
@ -1,3 +1,7 @@
|
|||||||
|
2004-04-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* tst-context1.c (fct): Check whether correct stack is used.
|
||||||
|
|
||||||
2004-04-03 Ulrich Drepper <drepper@redhat.com>
|
2004-04-03 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
|
* sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Never use
|
||||||
|
@ -36,9 +36,23 @@ static volatile int failures;
|
|||||||
static void
|
static void
|
||||||
fct (long int n)
|
fct (long int n)
|
||||||
{
|
{
|
||||||
|
char on_stack[1];
|
||||||
|
|
||||||
/* Just to use the thread local descriptor. */
|
/* Just to use the thread local descriptor. */
|
||||||
printf ("%ld: in %s now\n", n, __FUNCTION__);
|
printf ("%ld: in %s now, on_stack = %p\n", n, __FUNCTION__, on_stack);
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
|
if (n < 0 || n >= N)
|
||||||
|
{
|
||||||
|
printf ("%ld out of range\n", n);
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (on_stack < stacks[n] || on_stack >= stacks[n] + sizeof (stacks[0]))
|
||||||
|
{
|
||||||
|
printf ("%ld: on_stack not on appropriate stack\n", n);
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user