Page MenuHomeFreeBSD

tests/sys/audit: fix timeout calculation
ClosedPublic

Authored by arichardson on Jan 28 2021, 9:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 1:00 AM
Unknown Object (File)
Mon, Sep 29, 6:19 PM
Unknown Object (File)
Sun, Sep 28, 7:15 PM
Unknown Object (File)
Sep 21 2025, 1:52 PM
Unknown Object (File)
Sep 21 2025, 1:48 PM
Unknown Object (File)
Sep 14 2025, 1:13 AM
Unknown Object (File)
Aug 29 2025, 4:42 PM
Unknown Object (File)
Aug 29 2025, 12:35 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