Dmitry V. Levin
12e2442784
* tests/ipc_msg.c: New file. * tests/ipc_sem.c: Likewise. * tests/ipc_shm.c: Likewise. * tests/ipc_msg.test: New test. * tests/ipc_sem.test: Likewise. * tests/ipc_shm.test: Likewise. * tests/Makefile.am (check_PROGRAMS): Add ipc_msg, ipc_sem, and ipc_shm. (TESTS): Add ipc_msg.test, ipc_sem.test, and ipc_shm.test. * tests/.gitignore: Add ipc_msg, ipc_sem, and ipc_shm.
29 lines
477 B
Bash
Executable File
29 lines
477 B
Bash
Executable File
#!/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 $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
|