Page MenuHomeFreeBSD

tests/sys/audit: fix timeout calculation
ClosedPublic

Authored by arichardson on Jan 28 2021, 9:46 AM.
Tags
None
Referenced Files
F97681710: D28391.diff
Mon, Sep 30, 6:22 PM
Unknown Object (File)
Wed, Sep 25, 7:30 AM
Unknown Object (File)
Sun, Sep 22, 2:58 PM
Unknown Object (File)
Thu, Sep 5, 7:39 AM
Unknown Object (File)
Sun, Sep 1, 6:47 PM
Unknown Object (File)
Sun, Sep 1, 3:12 PM
Unknown Object (File)
Sat, Aug 31, 7:57 PM
Unknown Object (File)
Aug 17 2024, 4:09 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