From bad487cc07b63a06e5ab2e264ec2d64f2b40f60d Mon Sep 17 00:00:00 2001 From: Tomoki Shirasawa Date: Sat, 25 Nov 2017 18:30:51 +0900 Subject: [PATCH] add regression test result for strace --- test/strace/regression/clone01.log | 1 + test/strace/regression/clone03.log | 1 + test/strace/regression/clone04.log | 1 + test/strace/regression/clone06.log | 1 + test/strace/regression/clone07.log | 1 + test/strace/regression/execve01.log | 2 + test/strace/regression/execve02.log | 2 + test/strace/regression/execve03.log | 6 ++ test/strace/regression/fork01.log | 2 + test/strace/regression/fork02.log | 4 + test/strace/regression/fork03.log | 2 + test/strace/regression/fork04.log | 3 + test/strace/regression/fork07.log | 4 + test/strace/regression/fork08.log | 11 +++ test/strace/regression/fork09.log | 5 ++ test/strace/regression/fork10.log | 2 + test/strace/regression/fork11.log | 1 + test/strace/regression/ptrace01.log | 2 + test/strace/regression/ptrace02.log | 2 + test/strace/regression/ptrace05.log | 130 +++++++++++++++++++++++++++ test/strace/regression/result.txt | 41 +++++++++ test/strace/regression/test.sh | 47 ++++++++++ test/strace/regression/wait02.log | 1 + test/strace/regression/wait401.log | 2 + test/strace/regression/wait402.log | 1 + test/strace/regression/waitid01.log | 28 ++++++ test/strace/regression/waitid02.log | 32 +++++++ test/strace/regression/waitpid01.log | 2 + test/strace/regression/waitpid02.log | 3 + test/strace/regression/waitpid03.log | 2 + test/strace/regression/waitpid04.log | 3 + test/strace/regression/waitpid05.log | 24 +++++ test/strace/regression/waitpid07.log | 1 + test/strace/regression/waitpid08.log | 1 + test/strace/regression/waitpid09.log | 2 + test/strace/regression/waitpid12.log | 2 + test/strace/regression/waitpid13.log | 2 + 37 files changed, 377 insertions(+) create mode 100644 test/strace/regression/clone01.log create mode 100644 test/strace/regression/clone03.log create mode 100644 test/strace/regression/clone04.log create mode 100644 test/strace/regression/clone06.log create mode 100644 test/strace/regression/clone07.log create mode 100644 test/strace/regression/execve01.log create mode 100644 test/strace/regression/execve02.log create mode 100644 test/strace/regression/execve03.log create mode 100644 test/strace/regression/fork01.log create mode 100644 test/strace/regression/fork02.log create mode 100644 test/strace/regression/fork03.log create mode 100644 test/strace/regression/fork04.log create mode 100644 test/strace/regression/fork07.log create mode 100644 test/strace/regression/fork08.log create mode 100644 test/strace/regression/fork09.log create mode 100644 test/strace/regression/fork10.log create mode 100644 test/strace/regression/fork11.log create mode 100644 test/strace/regression/ptrace01.log create mode 100644 test/strace/regression/ptrace02.log create mode 100644 test/strace/regression/ptrace05.log create mode 100644 test/strace/regression/result.txt create mode 100644 test/strace/regression/test.sh create mode 100644 test/strace/regression/wait02.log create mode 100644 test/strace/regression/wait401.log create mode 100644 test/strace/regression/wait402.log create mode 100644 test/strace/regression/waitid01.log create mode 100644 test/strace/regression/waitid02.log create mode 100644 test/strace/regression/waitpid01.log create mode 100644 test/strace/regression/waitpid02.log create mode 100644 test/strace/regression/waitpid03.log create mode 100644 test/strace/regression/waitpid04.log create mode 100644 test/strace/regression/waitpid05.log create mode 100644 test/strace/regression/waitpid07.log create mode 100644 test/strace/regression/waitpid08.log create mode 100644 test/strace/regression/waitpid09.log create mode 100644 test/strace/regression/waitpid12.log create mode 100644 test/strace/regression/waitpid13.log diff --git a/test/strace/regression/clone01.log b/test/strace/regression/clone01.log new file mode 100644 index 00000000..d17202e7 --- /dev/null +++ b/test/strace/regression/clone01.log @@ -0,0 +1 @@ +clone01 1 TPASS : clone returned 10970 diff --git a/test/strace/regression/clone03.log b/test/strace/regression/clone03.log new file mode 100644 index 00000000..4b4a996e --- /dev/null +++ b/test/strace/regression/clone03.log @@ -0,0 +1 @@ +clone03 1 TPASS : Test passed diff --git a/test/strace/regression/clone04.log b/test/strace/regression/clone04.log new file mode 100644 index 00000000..7d1b5904 --- /dev/null +++ b/test/strace/regression/clone04.log @@ -0,0 +1 @@ +clone04 1 TPASS : expected failure; Got EINVAL diff --git a/test/strace/regression/clone06.log b/test/strace/regression/clone06.log new file mode 100644 index 00000000..95d612a5 --- /dev/null +++ b/test/strace/regression/clone06.log @@ -0,0 +1 @@ +clone06 1 TPASS : Test Passed diff --git a/test/strace/regression/clone07.log b/test/strace/regression/clone07.log new file mode 100644 index 00000000..52f2cce9 --- /dev/null +++ b/test/strace/regression/clone07.log @@ -0,0 +1 @@ +clone07 1 TPASS : Use of return() in child did not cause SIGSEGV diff --git a/test/strace/regression/execve01.log b/test/strace/regression/execve01.log new file mode 100644 index 00000000..4667957a --- /dev/null +++ b/test/strace/regression/execve01.log @@ -0,0 +1,2 @@ +execl01_child 1 TPASS : execve01_child executed +execve01 0 TINFO : Child process returned TPASS diff --git a/test/strace/regression/execve02.log b/test/strace/regression/execve02.log new file mode 100644 index 00000000..3cf38586 --- /dev/null +++ b/test/strace/regression/execve02.log @@ -0,0 +1,2 @@ +execve02 1 TPASS : execve() failed expectedly: TEST_ERRNO=EACCES(13): Permission denied +execve02 0 TINFO : Child process returned TPASS diff --git a/test/strace/regression/execve03.log b/test/strace/regression/execve03.log new file mode 100644 index 00000000..97b0ebf2 --- /dev/null +++ b/test/strace/regression/execve03.log @@ -0,0 +1,6 @@ +execve03 1 TPASS : execve failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long +execve03 2 TPASS : execve failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory +execve03 3 TPASS : execve failed as expected: TEST_ERRNO=ENOTDIR(20): Not a directory +execve03 4 TPASS : execve failed as expected: TEST_ERRNO=EFAULT(14): Bad address +execve03 5 TPASS : execve failed as expected: TEST_ERRNO=EACCES(13): Permission denied +execve03 6 TPASS : execve failed as expected: TEST_ERRNO=ENOEXEC(8): Exec format error diff --git a/test/strace/regression/fork01.log b/test/strace/regression/fork01.log new file mode 100644 index 00000000..ae06605d --- /dev/null +++ b/test/strace/regression/fork01.log @@ -0,0 +1,2 @@ +fork01 1 TPASS : fork() returned 11240 +fork01 2 TPASS : child pid and fork() return agree: 11240 diff --git a/test/strace/regression/fork02.log b/test/strace/regression/fork02.log new file mode 100644 index 00000000..53e26b6a --- /dev/null +++ b/test/strace/regression/fork02.log @@ -0,0 +1,4 @@ +fork02 0 TINFO : Inside parent +fork02 0 TINFO : Inside child +fork02 0 TINFO : exit status of wait 0 +fork02 1 TPASS : test 1 PASSED diff --git a/test/strace/regression/fork03.log b/test/strace/regression/fork03.log new file mode 100644 index 00000000..1aefe232 --- /dev/null +++ b/test/strace/regression/fork03.log @@ -0,0 +1,2 @@ +fork03 0 TINFO : process id in parent of child from fork : 11360 +fork03 1 TPASS : test 1 PASSED diff --git a/test/strace/regression/fork04.log b/test/strace/regression/fork04.log new file mode 100644 index 00000000..22fb266c --- /dev/null +++ b/test/strace/regression/fork04.log @@ -0,0 +1,3 @@ +fork04 1 TPASS : Env var TERM unchanged after fork(): xterm +fork04 2 TPASS : Env var NoTSetzWq unchanged after fork(): getenv() does not find variable set +fork04 3 TPASS : Env var TESTPROG unchanged after fork(): FRKTCS04 diff --git a/test/strace/regression/fork07.log b/test/strace/regression/fork07.log new file mode 100644 index 00000000..5d4b2e96 --- /dev/null +++ b/test/strace/regression/fork07.log @@ -0,0 +1,4 @@ +fork07 0 TINFO : Forking 100 children +fork07 0 TINFO : Forked all 100 children, now collecting +fork07 0 TINFO : Collected all 100 children +fork07 1 TPASS : 100/100 children read correctly from an inheritted fd diff --git a/test/strace/regression/fork08.log b/test/strace/regression/fork08.log new file mode 100644 index 00000000..509666ed --- /dev/null +++ b/test/strace/regression/fork08.log @@ -0,0 +1,11 @@ +fork08 0 TINFO : parent forksval: 1 +fork08 0 TINFO : parent forksval: 2 +fork08 0 TINFO : exit status of wait expected 0 got 0 +fork08 1 TPASS : parent test PASSED +fork08 0 TINFO : second child got char: b +fork08 1 TPASS : Test passed in childnumber 2 +fork08 0 TINFO : exit status of wait expected 0 got 0 +fork08 2 TPASS : parent test PASSED +fork08 0 TINFO : exit status of wait expected 0 got 0 +fork08 3 TPASS : parent test PASSED +fork08 0 TINFO : Number of processes forked is 2 diff --git a/test/strace/regression/fork09.log b/test/strace/regression/fork09.log new file mode 100644 index 00000000..fecd764d --- /dev/null +++ b/test/strace/regression/fork09.log @@ -0,0 +1,5 @@ +fork09 0 TINFO : OPEN_MAX is 1024 +fork09 0 TINFO : first file descriptor is 10 +fork09 0 TINFO : Parent reporting 1023 files open +fork09 0 TINFO : Child opened new file #1023 +fork09 1 TPASS : test 1 PASSED diff --git a/test/strace/regression/fork10.log b/test/strace/regression/fork10.log new file mode 100644 index 00000000..808d3a00 --- /dev/null +++ b/test/strace/regression/fork10.log @@ -0,0 +1,2 @@ +fork10 0 TINFO : fork child A +fork10 1 TPASS : test 1 PASSED diff --git a/test/strace/regression/fork11.log b/test/strace/regression/fork11.log new file mode 100644 index 00000000..64b40ebf --- /dev/null +++ b/test/strace/regression/fork11.log @@ -0,0 +1 @@ +fork11 1 TPASS : fork test passed, 100 processes diff --git a/test/strace/regression/ptrace01.log b/test/strace/regression/ptrace01.log new file mode 100644 index 00000000..044e0e9a --- /dev/null +++ b/test/strace/regression/ptrace01.log @@ -0,0 +1,2 @@ +ptrace01 1 TPASS : Test Passed +ptrace01 2 TPASS : Test Passed diff --git a/test/strace/regression/ptrace02.log b/test/strace/regression/ptrace02.log new file mode 100644 index 00000000..e15e4e0d --- /dev/null +++ b/test/strace/regression/ptrace02.log @@ -0,0 +1,2 @@ +ptrace02 1 TPASS : Test Passed +ptrace02 2 TPASS : Test Passed diff --git a/test/strace/regression/ptrace05.log b/test/strace/regression/ptrace05.log new file mode 100644 index 00000000..ab21537e --- /dev/null +++ b/test/strace/regression/ptrace05.log @@ -0,0 +1,130 @@ +ptrace05 0 TINFO : [child] Sending kill(.., 0) +ptrace05 1 TPASS : kill(.., 0) exited with 0, as expected. +ptrace05 0 TINFO : [child] Sending kill(.., 1) +ptrace05 2 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 2) +ptrace05 3 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 3) +ptrace05 4 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 4) +ptrace05 5 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 5) +ptrace05 6 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 6) +ptrace05 7 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 7) +ptrace05 8 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 8) +ptrace05 9 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 9) +ptrace05 10 TPASS : Killed with SIGKILL, as expected. +ptrace05 0 TINFO : [child] Sending kill(.., 10) +ptrace05 11 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 11) +ptrace05 12 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 12) +ptrace05 13 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 13) +ptrace05 14 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 14) +ptrace05 15 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 15) +ptrace05 16 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 16) +ptrace05 17 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 17) +ptrace05 18 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 18) +ptrace05 19 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 19) +ptrace05 20 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 20) +ptrace05 21 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 21) +ptrace05 22 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 22) +ptrace05 23 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 23) +ptrace05 24 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 24) +ptrace05 25 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 25) +ptrace05 26 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 26) +ptrace05 27 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 27) +ptrace05 28 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 28) +ptrace05 29 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 29) +ptrace05 30 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 30) +ptrace05 31 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 31) +ptrace05 32 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 32) +ptrace05 33 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 33) +ptrace05 34 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 34) +ptrace05 35 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 35) +ptrace05 36 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 36) +ptrace05 37 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 37) +ptrace05 38 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 38) +ptrace05 39 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 39) +ptrace05 40 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 40) +ptrace05 41 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 41) +ptrace05 42 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 42) +ptrace05 43 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 43) +ptrace05 44 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 44) +ptrace05 45 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 45) +ptrace05 46 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 46) +ptrace05 47 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 47) +ptrace05 48 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 48) +ptrace05 49 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 49) +ptrace05 50 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 50) +ptrace05 51 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 51) +ptrace05 52 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 52) +ptrace05 53 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 53) +ptrace05 54 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 54) +ptrace05 55 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 55) +ptrace05 56 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 56) +ptrace05 57 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 57) +ptrace05 58 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 58) +ptrace05 59 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 59) +ptrace05 60 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 60) +ptrace05 61 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 61) +ptrace05 62 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 62) +ptrace05 63 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 63) +ptrace05 64 TPASS : Stopped as expected +ptrace05 0 TINFO : [child] Sending kill(.., 64) +ptrace05 65 TPASS : Stopped as expected diff --git a/test/strace/regression/result.txt b/test/strace/regression/result.txt new file mode 100644 index 00000000..ef35b398 --- /dev/null +++ b/test/strace/regression/result.txt @@ -0,0 +1,41 @@ +clone01: OK +clone03: OK +clone04: OK +clone06: OK +clone07: OK +fork01: OK +fork02: OK +fork03: OK +fork04: OK +fork07: OK +fork08: OK +fork09: OK +fork10: OK +fork11: OK +execve01: OK +Error: Failed to open execve_child +execve(): error loading ELF for file execve_child +execve02: OK +Error: /tmp/exezNhGkC/fake.17900 is not an executable?, errno: 13 +execve(): error loading ELF for file /tmp/exezNhGkC/fake.17900 +Error: file /tmp/exezNhGkC/execve03.17900 is zero length +execve(): error loading ELF for file /tmp/exezNhGkC/execve03.17900 +execve03: OK +wait02: OK +wait401: OK +wait402: OK +waitid01: OK +waitid02: OK +waitpid01: OK +waitpid02: OK +waitpid03: OK +waitpid04: OK +waitpid05: OK +waitpid07: OK +waitpid08: OK +waitpid09: OK +waitpid12: OK +waitpid13: OK +ptrace01: OK +ptrace02: OK +ptrace05: OK diff --git a/test/strace/regression/test.sh b/test/strace/regression/test.sh new file mode 100644 index 00000000..991d86e8 --- /dev/null +++ b/test/strace/regression/test.sh @@ -0,0 +1,47 @@ +#!/bin/sh +LTPDIR=/home/shirasawa/ltp2015/testcases/bin +export PATH=/home/shirasawa/ltp2015/testcases/bin:$PATH +MCEXEC=/home/shirasawa/wallaby11-smp-x86/development/mic/mcexec +while read i;do +if $MCEXEC $LTPDIR/$i > $i.log; then + echo $i: OK +else + echo $i: NG +fi +done << EOF +clone01 +clone03 +clone04 +clone06 +clone07 +fork01 +fork02 +fork03 +fork04 +fork07 +fork08 +fork09 +fork10 +fork11 +execve01 +execve02 +execve03 +wait02 +wait401 +wait402 +waitid01 +waitid02 +waitpid01 +waitpid02 +waitpid03 +waitpid04 +waitpid05 +waitpid07 +waitpid08 +waitpid09 +waitpid12 +waitpid13 +ptrace01 +ptrace02 +ptrace05 +EOF diff --git a/test/strace/regression/wait02.log b/test/strace/regression/wait02.log new file mode 100644 index 00000000..ee14cb2a --- /dev/null +++ b/test/strace/regression/wait02.log @@ -0,0 +1 @@ +wait02 1 TPASS : wait(&status) returned 17960 diff --git a/test/strace/regression/wait401.log b/test/strace/regression/wait401.log new file mode 100644 index 00000000..7ba044aa --- /dev/null +++ b/test/strace/regression/wait401.log @@ -0,0 +1,2 @@ +wait401 1 TPASS : Received child pid as expected. +wait401 2 TPASS : wait401 call succeeded diff --git a/test/strace/regression/wait402.log b/test/strace/regression/wait402.log new file mode 100644 index 00000000..04f946b4 --- /dev/null +++ b/test/strace/regression/wait402.log @@ -0,0 +1 @@ +wait402 1 TPASS : received expected failure - errno = 10 - No child processes diff --git a/test/strace/regression/waitid01.log b/test/strace/regression/waitid01.log new file mode 100644 index 00000000..cf4d6d9e --- /dev/null +++ b/test/strace/regression/waitid01.log @@ -0,0 +1,28 @@ +waitid01 0 TINFO : Process 18110 terminated: +waitid01 0 TINFO : code = 1 +waitid01 0 TINFO : exit value = 31488 +waitid01 0 TINFO : Process 18140 terminated: +waitid01 0 TINFO : code = 1 +waitid01 0 TINFO : exit value = 0 +waitid01 0 TINFO : Process 18170 terminated: +waitid01 0 TINFO : code = 2 +waitid01 0 TINFO : signal = 1 +waitid01 0 TINFO : Process 18200 terminated: +waitid01 0 TINFO : code = 1 +waitid01 0 TINFO : exit value = 31488 +waitid01 0 TINFO : Process 18230 terminated: +waitid01 0 TINFO : code = 1 +waitid01 0 TINFO : exit value = 0 +waitid01 0 TINFO : Process 18260 terminated: +waitid01 0 TINFO : code = 2 +waitid01 0 TINFO : signal = 1 +waitid01 0 TINFO : Process 18290 terminated: +waitid01 0 TINFO : code = 1 +waitid01 0 TINFO : exit value = 31488 +waitid01 0 TINFO : Process 18320 terminated: +waitid01 0 TINFO : code = 1 +waitid01 0 TINFO : exit value = 0 +waitid01 0 TINFO : Process 18350 terminated: +waitid01 0 TINFO : code = 2 +waitid01 0 TINFO : signal = 1 +waitid01 1 TPASS : waitid(): system call passed diff --git a/test/strace/regression/waitid02.log b/test/strace/regression/waitid02.log new file mode 100644 index 00000000..48a90fb9 --- /dev/null +++ b/test/strace/regression/waitid02.log @@ -0,0 +1,32 @@ +waitid02 0 TINFO : WNOHANG +waitid02 0 TINFO : (18380) waitid(0, 0, 0x547ffffffd10, 1) +waitid02 1 TPASS : exp_errno=22 +waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0 +waitid02 0 TINFO : WNOHANG | WEXITED no child +waitid02 0 TINFO : (18380) waitid(0, 0, 0x547ffffffd10, 5) +waitid02 2 TPASS : exp_errno=10 +waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0 +waitid02 0 TINFO : WNOHANG | WEXITED with child +waitid02 0 TINFO : (18380) waitid(0, 0, 0x547ffffffd10, 5) +waitid02 3 TPASS : ret: 0 +waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0 +waitid02 0 TINFO : P_PGID, WEXITED wait for child +waitid02 0 TINFO : (18380) waitid(2, 10938, 0x547ffffffd10, 4) +waitid02 4 TPASS : ret: 0 +waitid02 0 TINFO : si_pid = 18440 ; si_code = 1 ; si_status = 0 +waitid02 0 TINFO : P_PID, WEXITED wait for child +waitid02 0 TINFO : (18380) waitid(1, 18470, 0x547ffffffd10, 4) +waitid02 5 TPASS : ret: 0 +waitid02 0 TINFO : si_pid = 18470 ; si_code = 1 ; si_status = 0 +waitid02 0 TINFO : P_PID, WSTOPPED | WNOWAIT +waitid02 0 TINFO : (18380) waitid(1, 18500, 0x547ffffffd10, 16777218) +waitid02 6 TPASS : ret: 0 +waitid02 0 TINFO : si_pid = 18500 ; si_code = 5 ; si_status = 4991 +waitid02 0 TINFO : P_PID, WCONTINUED +waitid02 0 TINFO : (18380) waitid(1, 18530, 0x547ffffffd10, 8) +waitid02 7 TPASS : ret: 0 +waitid02 0 TINFO : si_pid = 18530 ; si_code = 6 ; si_status = 65535 +waitid02 0 TINFO : P_PID, WEXITED not a child of the calling process +waitid02 0 TINFO : (18380) waitid(1, 1, 0x547ffffffd10, 4) +waitid02 8 TPASS : exp_errno=10 +waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0 diff --git a/test/strace/regression/waitpid01.log b/test/strace/regression/waitpid01.log new file mode 100644 index 00000000..3fae0d4e --- /dev/null +++ b/test/strace/regression/waitpid01.log @@ -0,0 +1,2 @@ +waitpid01 1 TPASS : recieved expected pid +waitpid01 2 TPASS : recieved expected signal diff --git a/test/strace/regression/waitpid02.log b/test/strace/regression/waitpid02.log new file mode 100644 index 00000000..6b4d2575 --- /dev/null +++ b/test/strace/regression/waitpid02.log @@ -0,0 +1,3 @@ +waitpid02 1 TPASS : recieved expected pid +waitpid02 2 TPASS : recieved expected signal +waitpid02 3 TPASS : recieved expected exit value diff --git a/test/strace/regression/waitpid03.log b/test/strace/regression/waitpid03.log new file mode 100644 index 00000000..5b51f8dc --- /dev/null +++ b/test/strace/regression/waitpid03.log @@ -0,0 +1,2 @@ +waitpid03 1 TPASS : Got correct child PID +waitpid03 2 TPASS : Condition 2 test passed diff --git a/test/strace/regression/waitpid04.log b/test/strace/regression/waitpid04.log new file mode 100644 index 00000000..37b2680c --- /dev/null +++ b/test/strace/regression/waitpid04.log @@ -0,0 +1,3 @@ +waitpid04 1 TPASS : condition 1 test passed +waitpid04 2 TPASS : condition 2 test passed +waitpid04 3 TPASS : condition 3 test passed diff --git a/test/strace/regression/waitpid05.log b/test/strace/regression/waitpid05.log new file mode 100644 index 00000000..14e6a030 --- /dev/null +++ b/test/strace/regression/waitpid05.log @@ -0,0 +1,24 @@ +waitpid05 1 TPASS : received expected pid. +waitpid05 2 TPASS : received expected exit number. +waitpid05 3 TPASS : received expected pid. +waitpid05 4 TPASS : received expected exit number. +waitpid05 5 TPASS : received expected pid. +waitpid05 6 TPASS : received expected exit number. +waitpid05 7 TPASS : received expected pid. +waitpid05 8 TPASS : received expected exit number. +waitpid05 9 TPASS : received expected pid. +waitpid05 10 TPASS : received expected exit number. +waitpid05 11 TPASS : received expected pid. +waitpid05 12 TPASS : received expected exit number. +waitpid05 13 TPASS : received expected pid. +waitpid05 14 TPASS : received expected exit number. +waitpid05 15 TPASS : received expected pid. +waitpid05 16 TPASS : received expected exit number. +waitpid05 17 TPASS : received expected pid. +waitpid05 18 TPASS : received expected exit number. +waitpid05 19 TPASS : received expected pid. +waitpid05 20 TPASS : received expected exit number. +waitpid05 21 TPASS : received expected pid. +waitpid05 22 TPASS : received expected exit number. +waitpid05 23 TPASS : received expected pid. +waitpid05 24 TPASS : received expected exit number. diff --git a/test/strace/regression/waitpid07.log b/test/strace/regression/waitpid07.log new file mode 100644 index 00000000..9d347936 --- /dev/null +++ b/test/strace/regression/waitpid07.log @@ -0,0 +1 @@ +waitpid07 1 TPASS : waitpid07 PASSED diff --git a/test/strace/regression/waitpid08.log b/test/strace/regression/waitpid08.log new file mode 100644 index 00000000..15182c1a --- /dev/null +++ b/test/strace/regression/waitpid08.log @@ -0,0 +1 @@ +waitpid08 1 TPASS : waitpid08 PASSED diff --git a/test/strace/regression/waitpid09.log b/test/strace/regression/waitpid09.log new file mode 100644 index 00000000..f95d1361 --- /dev/null +++ b/test/strace/regression/waitpid09.log @@ -0,0 +1,2 @@ +waitpid09 1 TPASS : case 1 PASSED +waitpid09 2 TPASS : case 2 PASSED diff --git a/test/strace/regression/waitpid12.log b/test/strace/regression/waitpid12.log new file mode 100644 index 00000000..172b7eff --- /dev/null +++ b/test/strace/regression/waitpid12.log @@ -0,0 +1,2 @@ +waitpid12 1 TPASS : Test PASSED +waitpid12 1 TPASS : waitpid12 PASSED diff --git a/test/strace/regression/waitpid13.log b/test/strace/regression/waitpid13.log new file mode 100644 index 00000000..dd29f258 --- /dev/null +++ b/test/strace/regression/waitpid13.log @@ -0,0 +1,2 @@ +waitpid13 1 TPASS : Test PASSED +waitpid13 1 TPASS : waitpid13 PASSED