From a99e93c41257c2c16b950d1d49df18ac2549cd69 Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Thu, 3 Jan 2013 16:47:10 -0800 Subject: [PATCH] Subject: tests - fix clone test on arm Merge from trunk commit 2074. Original message: apparmor: Fix clone test on quantal arm omap-4 It turns out that PAGE_SIZE isn't defined on all architectures. This fixes a regression test failure happening on Ubuntu quantal on the arm ti-omap4 architecture. Signed-off-by: John Johansen Acked-By: Steve Beattie Nominated-by: Steve Beattie Acked-by: John Johansen --- tests/regression/apparmor/clone.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/regression/apparmor/clone.c b/tests/regression/apparmor/clone.c index 73f8fa82b..ee3644e9e 100644 --- a/tests/regression/apparmor/clone.c +++ b/tests/regression/apparmor/clone.c @@ -23,6 +23,8 @@ #include #include +#define STACK_SIZE 0x8000 + struct option long_options[] = { {"newns", 0, 0, 'n'}, /* create a new namespace */ @@ -59,7 +61,7 @@ int main(int argc, char *argv[]) int waitstatus; int c; char buf[BUFSIZ]; - int stack_size = PAGE_SIZE << 4; + int stack_size = STACK_SIZE; void *child_stack = malloc(stack_size); int clone_flags = SIGCHLD;