Dmitry V. Levin
123d401508
Due to automake limitations, some features work only for tests that end in one of the suffixes listed in TEST_EXTENSIONS. * tests/detach-running: Rename to detach-running.test. * tests/detach-sleeping: Rename to detach-sleeping.test. * tests/detach-stopped: Rename to detach-stopped.test. * tests/net: Rename to net.test. * tests/ptrace_setoptions: Rename to ptrace_setoptions.test. * tests/qual_syscall: Rename to qual_syscall.test. * tests/sigaction.sh: Rename to sigaction.test. * tests/stat: Rename to stat.test. * tests/strace-f: Rename to strace-f.test. * tests/Makefile.am (TESTS): Update. (LOG_COMPILER): Rename to TEST_LOG_COMPILER.
26 lines
645 B
Bash
Executable File
26 lines
645 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Ensure that strace -e trace=set works.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
check_prog ls
|
|
check_prog grep
|
|
|
|
$STRACE -e execve ls > /dev/null 2> $LOG &&
|
|
grep '^execve(' $LOG > /dev/null ||
|
|
{ cat $LOG; fail_ 'strace -e execve does not work'; }
|
|
|
|
grep -v '^execve(' $LOG |
|
|
LC_ALL=C grep '^[[:alnum:]_]*(' > /dev/null &&
|
|
{ cat $LOG; fail_ 'strace -e execve does not work properly'; }
|
|
|
|
$STRACE -e trace=process ls > /dev/null 2> $LOG &&
|
|
grep '^execve(' $LOG > /dev/null ||
|
|
{ cat $LOG; fail_ 'strace -e trace=process does not work'; }
|
|
|
|
grep '^open' $LOG > /dev/null &&
|
|
{ cat $LOG; fail_ 'strace -e trace=process does not work properly'; }
|
|
|
|
exit 0
|