diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2020-01-20 16:19:40 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-01-21 18:02:38 +0000 |
commit | 8e515c744935fe67e6a1b941f4c5414472c163b7 (patch) | |
tree | 9ab02b8ef70cf532421683ef27605b08ef4405eb /tests/strace-k-p.expected | |
parent | 3794c2a188a3395f71eb50d93542bcb5781a382b (diff) | |
download | strace-8e515c744935fe67e6a1b941f4c5414472c163b7.tar.gz |
tests: add strace-k-p test
Add a check of the stack unwinding for attached processes.
* tests/stack-fcall-attach.c: New file.
* tests/strace-k-p.expected: Likewise.
* tests/strace-k-p.test: New test.
* tests/Makefile.am (EXTRA_DIST): Add strace-k-p.expected and strace-k-p.test.
(STACKTRACE_TESTS): Add strace-k-p.test
(check_PROGRAMS): Add stack-fcall-attach.
(stack_fcall_attach_SOURCES): New variable.
* tests/stack-fcall.c: Include "tests.h" and <unistd.h>.
[!ATTACH_MODE] (ATTACH_MODE): Define to 0.
(main) [ATTACH_MODE]: Wait a bit.
* tests/strace-k.test: Add attach mode.
Complements: v5.4-18-g69b2c33 "unwind-libdw: fix initialization of libdwfl cache"
Diffstat (limited to 'tests/strace-k-p.expected')
-rw-r--r-- | tests/strace-k-p.expected | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/strace-k-p.expected b/tests/strace-k-p.expected new file mode 100644 index 000000000..e40c339e4 --- /dev/null +++ b/tests/strace-k-p.expected @@ -0,0 +1,2 @@ +^chdir .*(__kernel_vsyscaln )?(__)?chdir f3 f2 f1 f0 main +^SIGURG .*(__kernel_vsyscaln )?(__)?kill f3 f2 f1 f0 main |