1#!/bin/sh
2
3# Check success injection.
4
5. "${srcdir=.}/scno_tampering.sh"
6
7check_injection()
8{
9	local syscall rval
10
11	syscall=chdir
12	rval="$1"; shift
13
14	run_strace -a12 -e$syscall -einject="$syscall:retval=$rval" "$@" \
15		../qual_inject-retval "$rval" > "$EXP"
16	match_diff "$LOG" "$EXP"
17}
18
19check_injection 0
20check_injection 42
21