Dmitry V. Levin
f9b455cfd2
* 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.
14 lines
183 B
Bash
Executable File
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
|