HomeFreeBSD

tests/sys/audit: fix timeout calculation

Description

tests/sys/audit: fix timeout calculation

This changes the behaviour to a 30s total timeout (needed when running
on slow emulated uniprocessor systems) and timing out after 10s without
any input. This also uses timespecsub() instead of ignoring the
nanoseconds field.

After this change the tests runs more reliably on QEMU and time out less
frequently.

Reviewed By: asomers
Differential Revision: https://reviews.freebsd.org/D28391

Details

Provenance
arichardsonAuthored on Jan 28 2021, 5:23 PM
Reviewer
asomers
Differential Revision
D28391: tests/sys/audit: fix timeout calculation
Parents
rG83ff5d5d98cb: Un-XFAIL two tests with Clang > 10
Branches
Unknown
Tags
Unknown