wait_for_running_tests
The wait_for_running_tests function waits for any running tests started via start_default_tests or start_test to complete. If no tests are currently running, then the function returns successfully.
- Parameters
- An optional timeout in milliseconds. If not specified, then the function will never timeout and will wait until the XJEase code completes.
- Return number
- The number of running cards that timed out, i.e. if all tests have completed, then it returns zero.
- Return string
- none
- Fails if
-
- No project has been opened
- The timeout value was not recognised as a valid integer
Example
Wait forever for tests to complete:
xdcall "xjtag1" , "wait_for_running_tests", Num, RTN$
Wait for up to 500 ms for tests to complete:
xdcall "xjtag1" , "wait_for_running_tests", Num, RTN$; "500"
XJTAG v4.2.5
