Test scripts should call this function to indicate that the test passed. A note is recorded that the test succeeded, and is checked later on from the main thread so that CTest can be notified of this result.
(testName)
| 259 | # Test scripts call this function to indicate passage of their test |
| 260 | # ============================================================================= |
| 261 | def test_pass(testName): |
| 262 | """ |
| 263 | Test scripts should call this function to indicate that the test passed. A |
| 264 | note is recorded that the test succeeded, and is checked later on from the |
| 265 | main thread so that CTest can be notified of this result. |
| 266 | """ |
| 267 | |
| 268 | global test_module_comm_queue |
| 269 | resultObj = {testName: "pass"} |
| 270 | test_module_comm_queue.put(resultObj) |
| 271 | |
| 272 | |
| 273 | # ============================================================================= |
no test coverage detected