It slows things down, might not be available, and doesn't work in
Scratchbox (because QEmu doesn't implement ptrace(2)).
## have the child process run in another.
) && :; } | {
cd $1
- mkdir -p strace-hack/
echo TRIPE $2 >&2
- (cd strace-hack/
- ulimit -c hard >/dev/null 2>&1
- strace -f -o ../tripe.trace \
- TRIPE -d.. $2 >../server-output.full 2>../server-errors)
+ case "${TRIPE_TEST_STRACE-nil}" in
+ nil)
+ TRIPE -d. $2 >server-output.full 2>server-errors
+ ;;
+ *)
+ mkdir -p strace-hack/
+ (cd strace-hack/
+ ulimit -c hard >/dev/null 2>&1
+ strace -f -o ../tripe.trace \
+ TRIPE -d.. $2 >../server-output.full 2>../server-errors)
+ ;;
+ esac
stat=$?
echo $stat >server-status
if test $stat -ne 0; then