Page MenuHomeFreeBSD

tests/sys/audit: fix timeout calculation
ClosedPublic

Authored by arichardson on Jan 28 2021, 9:46 AM.
Tags
None
Referenced Files
F156890455: D28391.id83029.diff
Sun, May 17, 3:03 AM
Unknown Object (File)
Fri, May 15, 6:45 PM
Unknown Object (File)
Thu, May 14, 4:50 PM
Unknown Object (File)
Thu, May 14, 1:27 AM
Unknown Object (File)
Wed, May 6, 9:40 PM
Unknown Object (File)
Tue, May 5, 9:06 AM
Unknown Object (File)
Fri, May 1, 12:41 PM
Unknown Object (File)
Wed, Apr 29, 4:56 PM
Subscribers
None

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable