Page MenuHomeFreeBSD

tftpd: Check the server status after each test.
ClosedPublic

Authored by des on Thu, Apr 25, 5:24 PM.
Tags
None
Referenced Files
F83358680: D44956.id137678.diff
Thu, May 9, 10:05 AM
Unknown Object (File)
Wed, May 8, 1:18 PM
Unknown Object (File)
Mon, May 6, 10:52 PM
Unknown Object (File)
Sat, Apr 27, 6:06 PM
Unknown Object (File)
Sat, Apr 27, 2:03 PM
Unknown Object (File)
Sat, Apr 27, 6:17 AM
Unknown Object (File)
Fri, Apr 26, 7:33 PM
Unknown Object (File)
Fri, Apr 26, 7:32 PM
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