strace/tests/time.test
Dmitry V. Levin f9b455cfd2 Fix time syscall decoding for some personalities
* time.c (current_time_t_is_int32): Define.
(sys_time): Use it, printnum_int, and printnum_int64 instead
of printnum_long.
* tests/time.c: New file.
* tests/time.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add time.
(TESTS): Add time.test.
* tests/.gitignore: Add time.
2015-08-18 15:10:55 +00:00

14 lines
183 B
Bash
Executable File

#!/bin/sh
# Check time syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -etime $args > "$OUT"
match_grep "$LOG" "$OUT"
rm -f "$OUT"
exit 0