Page MenuHomeFreeBSD

tftpd: Check the server status after each test.
ClosedPublic

Authored by des on Apr 25 2024, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 22, 2:33 PM
Unknown Object (File)
Sat, Feb 22, 1:31 PM
Unknown Object (File)
Sat, Feb 22, 1:30 PM
Unknown Object (File)
Thu, Jan 30, 10:56 PM
Unknown Object (File)
Jan 24 2025, 5:46 PM
Unknown Object (File)
Jan 23 2025, 7:11 PM
Unknown Object (File)
Jan 17 2025, 2:21 PM
Unknown Object (File)
Jan 10 2025, 1:06 AM
Subscribers

Details

Summary
  • In the setup phase, wait for the server to start (or fail to start) before proceeding with the test. This makes it possible to write test cases that don't expect a response from the server without ending up in a race over the server PID file.
  • After running each test, wait up to 30 seconds for the server to exit and check that the exit status matches what the test case says to expect (usually 0).
  • We still kill and collect the server in the cleanup phase, in case the test ended early.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable