strace/tests/delay.test
Elvira Khabirova a3bef655cb tests: check delay injection
* tests/delay.c: New file.
* tests/delay.test: New test.
* tests/.gitignore: Add delay.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(delay_LDADD): New variable.
(MISC_TESTS): Add delay.test.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2018-03-22 06:23:25 +00:00

11 lines
243 B
Bash
Executable File

#!/bin/sh
# Check delay injection.
. "${srcdir=.}/init.sh"
delay_enter=800000
delay_exit=1600000
run_strace -f -r -egettimeofday \
-einject=gettimeofday:delay_enter=$delay_enter:delay_exit=$delay_exit \
../delay 4 $delay_enter $delay_exit