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

(cherry picked from commit 869cc06480b75b4caea0d049e0cf7f82bb5aeed1)

Details

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