blob: b1ebe6d6dbe9c1cc621078a79caf3445c9dc7219 [file] [log] [blame]
#!/bin/sh
# Check decoding of ipc msgget/msgctl syscalls
. "${srcdir=.}/init.sh"
check_prog grep
OUT="$LOG.out"
./ipc_msg > /dev/null || {
if [ $? -eq 77 ]; then
framework_skip_ 'ipc msgget/msgctl syscalls do not behave as expected'
else
fail_ 'ipc_msg failed'
fi
}
args="-eipc ./ipc_msg $f"
$STRACE -o "$LOG" $args > "$OUT" &&
LC_ALL=C grep -E -x -f "$OUT" "$LOG" > /dev/null || {
cat "$OUT" "$LOG"
fail_ "$STRACE $args output mismatch"
}
rm -f "$OUT"
exit 0