aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-getpid1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-05-07 22:15:16 +0000
committerUlrich Drepper <drepper@redhat.com>2007-05-07 22:15:16 +0000
commit29c113f0db2053fe814c532b93d80f23185f3eb0 (patch)
tree0518e89541eba7f89fd9f4dd344924715e37f08f /nptl/tst-getpid1.c
parent16105fe0bcf45769d61d5180b670c8c661432748 (diff)
downloadglibc-29c113f0db2053fe814c532b93d80f23185f3eb0.zip
glibc-29c113f0db2053fe814c532b93d80f23185f3eb0.tar.gz
glibc-29c113f0db2053fe814c532b93d80f23185f3eb0.tar.bz2
[BZ #4455]
* tst-align2.c (do_test): Add _STACK_GROWS_UP case. * tst-getpid1.c (do_test): Likewise.
Diffstat (limited to 'nptl/tst-getpid1.c')
-rw-r--r--nptl/tst-getpid1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/tst-getpid1.c b/nptl/tst-getpid1.c
index f9fd4fc..e15cb61 100644
--- a/nptl/tst-getpid1.c
+++ b/nptl/tst-getpid1.c
@@ -48,7 +48,13 @@ do_test (void)
pid_t p = __clone2 (f, st, sizeof (st), TEST_CLONE_FLAGS, 0);
#else
char st[128 * 1024] __attribute__ ((aligned));
+# if _STACK_GROWS_DOWN
pid_t p = clone (f, st + sizeof (st), TEST_CLONE_FLAGS, 0);
+# elif _STACK_GROWS_UP
+ pid_t p = clone (f, st, TEST_CLONE_FLAGS, 0);
+# else
+# error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP"
+# endif
#endif
if (p == -1)
{