#!/bin/sh

# Check clock_getres, clock_gettime, and clock_settime syscalls decoding.

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

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

exit 0