diff options
author | Elvira Khabirova <lineprinter0@gmail.com> | 2021-02-07 10:08:49 +0300 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-02-07 07:08:49 +0000 |
commit | ec50e5235f8d86f2c7182ed855a7fa3e5b667fcf (patch) | |
tree | cf10aa4dda304008c37ab2a86c6d3e72bddc17c9 /tests/poke-unaligned.expected | |
parent | e5fc63ffea0dec5a1bc7413e878ac2cade17f145 (diff) | |
download | strace-ec50e5235f8d86f2c7182ed855a7fa3e5b667fcf.tar.gz |
tests: check poke injection functionality
* tests/poke.test: New test.
* tests/poke-ptrace.test: Likewise.
* tests/poke-range.test: Likewise.
* tests/poke-unaligned.test: Likewise.
* tests/poke-range.expected: New file.
* tests/poke-unaligned.expected: Likewise.
* tests/poke.c: New file.
* tests/poke-sendfile.c: Likewise.
* tests/gen_tests.in (poke-sendfile): New entry.
(trace_personality_*): Skip poke executable.
* tests/pure_executables.list: Add poke and poke-sendfile.
* tests/.gitignore: Likewise.
(EXTRA_DIST): Add poke-range.expected and poke-unaligned.expected.
(MISC_TESTS): Add poke.test, poke-ptrace.test, poke-range.test,
and poke-unaligned.test.
* tests/qual_inject-syntax.test: Invoke with -efu,
add checks for inject=SET:poke_{enter,exit} expression syntax.
Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'tests/poke-unaligned.expected')
-rw-r--r-- | tests/poke-unaligned.expected | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/poke-unaligned.expected b/tests/poke-unaligned.expected new file mode 100644 index 000000000..5abd881f7 --- /dev/null +++ b/tests/poke-unaligned.expected @@ -0,0 +1,2 @@ +.*: Failed to tamper with process [[:digit:]]+: couldn't poke +.*: cannot poke unaligned data len 7 |