diff options
author | Dimitry Ivanov <dimitry@google.com> | 2016-01-09 10:33:45 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2016-01-09 10:33:45 -0800 |
commit | f67c79d7589aa775f839d85e8c7e3ac99f3398c6 (patch) | |
tree | e9e6c276e23bd7438cb3da311dddcca41370b901 /tests | |
parent | db2bbc7e5cae86fec7ee5ac30e606cdbb4bfe9fe (diff) | |
download | ndk-f67c79d7589aa775f839d85e8c7e3ac99f3398c6.tar.gz |
Remove test for wait3
wait3 was removed from the NDK
Bug: http://b/26234924
Change-Id: I5c2c1cd0d9097151478936b72ccfffc1976ac4c5
Diffstat (limited to 'tests')
-rw-r--r-- | tests/device/test-wait/jni/test_wait.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/device/test-wait/jni/test_wait.c b/tests/device/test-wait/jni/test_wait.c index fd22640d6..d6ce4d7ac 100644 --- a/tests/device/test-wait/jni/test_wait.c +++ b/tests/device/test-wait/jni/test_wait.c @@ -90,21 +90,6 @@ static int check_waitpid(pid_t child_pid) { return WEXITSTATUS(status); } -// wait3 was removed from POSIX 2004 and is not in Bionic's LP64 ABIs. -#if !defined(__LP64__) -// To be called by check_wait_call() to check wait3() -static int check_wait3(pid_t child_pid) { - int status = 0; - struct rusage ru; - pid_t ret = wait3(&status, 0, &ru); - if (ret != child_pid) { - fprintf(stderr, "ERROR: wait3() returned %d, expected %d\n", ret, child_pid); - return -1; - } - return WEXITSTATUS(status); -} -#endif - // To be called by check_wait_call() to check wait3() static int check_wait4(pid_t child_pid) { int status = 0; @@ -124,12 +109,6 @@ int main(int argc, char *argv[]) { if (!check_wait_call("waitpid", check_waitpid, CHILD_EXIT_CODE + 1)) { return EXIT_FAILURE; } -// wait3 was removed from POSIX 2004 and is not in Bionic's LP64 ABIs. -#if !defined(__LP64__) - if (!check_wait_call("wait3", check_wait3, CHILD_EXIT_CODE + 2)) { - return EXIT_FAILURE; - } -#endif if (!check_wait_call("wait4", check_wait4, CHILD_EXIT_CODE + 3)) { return EXIT_FAILURE; } |