blob: b8fa545f5f94abd3a9703300f6872521a4411141 [file] [log] [blame]
#!/bin/sh
# Check decoding of ipc semget/semctl syscalls
. "${srcdir=.}/init.sh"
check_prog grep
OUT="$LOG.out"
./ipc_sem > /dev/null || {
if [ $? -eq 77 ]; then
framework_skip_ 'ipc semget/semctl syscalls do not behave as expected'
else
fail_ 'ipc_sem failed'
fi
}
args='-eipc ./ipc_sem'
$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