Page MenuHomeFreeBSD

tests/sys/audit: fix timeout calculation
ClosedPublic

Authored by arichardson on Jan 28 2021, 9:46 AM.

Details

Summary

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.

Test Plan

Runs more reliably on QEMU and times out less regularly

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

arichardson created this revision.
This revision is now accepted and ready to land.Jan 28 2021, 3:08 PM