#!/bin/sh -efu

. "./scno_tampering.sh"

run_prog ../syslog-success 0
for i in 0 23 42; do
	run_strace -a35 -e trace=syslog -e inject=syslog:retval="${i}" \
		../syslog-success "${i}" > "$EXP.$i"
	mv "$LOG" "$LOG.$i"
	match_diff "$LOG.$i" "$EXP.$i"
done
