blob: b1ebe6d6dbe9c1cc621078a79caf3445c9dc7219 [file] [log] [blame]
Dmitry V. Levin12e24422015-01-12 16:08:59 +00001#!/bin/sh
2
3# Check decoding of ipc msgget/msgctl syscalls
4
5. "${srcdir=.}/init.sh"
6
7check_prog grep
8
9OUT="$LOG.out"
10
11./ipc_msg > /dev/null || {
12 if [ $? -eq 77 ]; then
13 framework_skip_ 'ipc msgget/msgctl syscalls do not behave as expected'
14 else
15 fail_ 'ipc_msg failed'
16 fi
17}
18
19args="-eipc ./ipc_msg $f"
20$STRACE -o "$LOG" $args > "$OUT" &&
21LC_ALL=C grep -E -x -f "$OUT" "$LOG" > /dev/null || {
22 cat "$OUT" "$LOG"
23 fail_ "$STRACE $args output mismatch"
24}
25
26rm -f "$OUT"
27
28exit 0