From: Wichert Akkerman Date: Mon, 10 Apr 2000 22:26:39 +0000 (+0000) Subject: add clone test X-Git-Tag: v4.5.18~1126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=529f06d9c959da041be82bad8f4eb9bb97377168;p=strace add clone test --- diff --git a/test/clone.c b/test/clone.c new file mode 100644 index 00000000..4fb66130 --- /dev/null +++ b/test/clone.c @@ -0,0 +1,16 @@ +#include +#include + +int child(void* arg) { + write(1, "clone\n", 6); + return 0; +} + +int +main() +{ + char stack[4096]; + if (clone(child, stack+4000, CLONE_VM|CLONE_FS|CLONE_FILES, NULL) == 0) + write(1, "original\n", 9); + exit(0); +}