strace/tests/fork-f.test
Dmitry V. Levin 6833d61090 tests: change text marker in fork-f and vfork-f tests
Use chdir syscalls instead of pwrite64 syscalls as a method of inserting
text markers into strace output because the former are more portable.

* tests/fork-f.c (logit): Rename to logit_. Use chdir instead of pwrite.
(logit): New macro wrapper around logit_.
(main): Update expected output.
* tests/vfork-f.c: Likewise.
* tests/fork-f.test: Update.
2016-01-08 02:45:05 +00:00

14 lines
223 B
Bash
Executable File

#!/bin/sh
# Check how strace -f follows fork syscall.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a26 -qq -f -echdir -esignal=none $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0