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
F107068809: D44956.id137689.diff
Thu, Jan 9, 3:08 PM
F107062308: D44956.diff
Thu, Jan 9, 12:34 PM
Unknown Object (File)
Oct 2 2024, 9:55 PM
Unknown Object (File)
Sep 29 2024, 9:21 PM
Unknown Object (File)
Sep 29 2024, 5:18 AM
Unknown Object (File)
Sep 29 2024, 2:09 AM
Unknown Object (File)
Sep 29 2024, 2:09 AM
Unknown Object (File)
Sep 28 2024, 7:47 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57367
Build 54255: arc lint + arc unit