am d7eb7dac: am 5f1322ce: Merge "Pass a valid stack pointer to __bionic_clone in pthread.__bionic_clone"

* commit 'd7eb7dacd9a878e7ce3772ebf9b5e6cfcee6ab1c':
  Pass a valid stack pointer to __bionic_clone in pthread.__bionic_clone
This commit is contained in:
Elliott Hughes 2014-01-06 23:52:55 +00:00 committed by Android Git Automerger
commit 3d37e2b632

View File

@ -251,7 +251,7 @@ TEST(pthread, __bionic_clone) {
// Check that our hand-written clone assembler sets errno correctly on failure. // Check that our hand-written clone assembler sets errno correctly on failure.
uintptr_t fake_child_stack[16]; uintptr_t fake_child_stack[16];
errno = 0; errno = 0;
ASSERT_EQ(-1, __bionic_clone(CLONE_THREAD, &fake_child_stack[0], NULL, NULL, NULL, NULL, NULL)); ASSERT_EQ(-1, __bionic_clone(CLONE_THREAD, &fake_child_stack[16], NULL, NULL, NULL, NULL, NULL));
ASSERT_EQ(EINVAL, errno); ASSERT_EQ(EINVAL, errno);
} }
#endif #endif