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, Feb 8, 6:43 PM
Unknown Object (File)
Thu, Feb 6, 5:06 PM
Unknown Object (File)
Wed, Jan 29, 1:12 AM
Unknown Object (File)
Fri, Jan 17, 10:12 PM
Unknown Object (File)
Jan 15 2025, 9:30 PM
Unknown Object (File)
Dec 10 2024, 11:17 PM
Unknown Object (File)
Dec 1 2024, 12:24 PM
Unknown Object (File)
Nov 20 2024, 9:00 AM
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