Dmitry V. Levin
6833d61090
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.
14 lines
223 B
Bash
Executable File
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
|