[compiler-rt] r201331 - [asan] Remove extra clone() arguments in test.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Feb 13 06:37:04 PST 2014


Author: eugenis
Date: Thu Feb 13 08:37:04 2014
New Revision: 201331

URL: http://llvm.org/viewvc/llvm-project?rev=201331&view=rev
Log:
[asan] Remove extra clone() arguments in test.

Android headers define clone() as a 4-argument function without ellipsis.


Modified:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/clone_test.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/clone_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/clone_test.cc?rev=201331&r1=201330&r2=201331&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/clone_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/clone_test.cc Thu Feb 13 08:37:04 2014
@@ -24,7 +24,7 @@ int main(int argc, char **argv) {
   char child_stack[kStackSize + 1];
   char *sp = child_stack + kStackSize;  // Stack grows down.
   printf("Parent: %p\n", sp);
-  pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL, 0, 0, 0);
+  pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL);
   int status;
   pid_t wait_result = waitpid(clone_pid, &status, __WCLONE);
   if (wait_result < 0) {





More information about the llvm-commits mailing list