Home
last modified time | relevance | path

Searched refs:child_pid (Results 1 – 4 of 4) sorted by relevance

/ndk/tests/device/test-wait/jni/
Dtest_wait.c40 typedef int (*wait_call_function)(pid_t child_pid);
72 static int check_wait(pid_t child_pid) { in check_wait() argument
75 if (ret != child_pid) { in check_wait()
76 fprintf(stderr, "ERROR: wait() returned %d, expected %d\n", ret, child_pid); in check_wait()
83 static int check_waitpid(pid_t child_pid) { in check_waitpid() argument
86 if (ret != child_pid) { in check_waitpid()
87 fprintf(stderr, "ERROR: waitpid() returned %d, expected %d\n", ret, child_pid); in check_waitpid()
94 static int check_wait4(pid_t child_pid) { in check_wait4() argument
98 if (ret != child_pid) { in check_wait4()
99 fprintf(stderr, "ERROR: wait4() returned %d, expected %d\n", ret, child_pid); in check_wait4()
/ndk/sources/third_party/googletest/googletest/src/
Dgtest-death-test.cc784 void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; } in set_child_pid() argument
842 const pid_t child_pid = fork(); in AssumeRole() local
843 GTEST_DEATH_TEST_CHECK_(child_pid != -1); in AssumeRole()
844 set_child_pid(child_pid); in AssumeRole()
845 if (child_pid == 0) { in AssumeRole()
1004 pid_t child_pid = -1; in ExecDeathTestSpawnChild() local
1031 child_pid = spawn(args.argv[0], 0, NULL, &inherit, args.argv, GetEnviron()); in ExecDeathTestSpawnChild()
1074 child_pid = clone(&ExecDeathTestChildMain, stack_top, SIGCHLD, &args); in ExecDeathTestSpawnChild()
1082 if (use_fork && (child_pid = fork()) == 0) { in ExecDeathTestSpawnChild()
1092 GTEST_DEATH_TEST_CHECK_(child_pid != -1); in ExecDeathTestSpawnChild()
[all …]
/ndk/sources/third_party/googletest/googletest/test/
Dgtest-death-test_test.cc231 pid_t child_pid = fork(); in NormalExitStatus() local
232 if (child_pid == 0) { in NormalExitStatus()
236 waitpid(child_pid, &status, 0); in NormalExitStatus()
246 pid_t child_pid = fork(); in KilledExitStatus() local
247 if (child_pid == 0) { in KilledExitStatus()
252 waitpid(child_pid, &status, 0); in KilledExitStatus()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/impl/
Ddebug.ipp868 pid_t child_pid = fork();
870 if( child_pid == -1 )
873 if( child_pid != 0 ) { // parent process - here we will start the debugger
876 process_info pi( child_pid );
880 dsi.pid = child_pid;