#!/bin/sh

# Check clock_nanosleep syscall decoding.

. "${srcdir=.}/init.sh"

run_prog > /dev/null
OUT="$LOG.out"
syscalls=clock_nanosleep,clock_gettime,setitimer
run_strace -e trace=$syscalls $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"

exit 0