int thrulay_wait(int tid, int * status, thrulay_wait_option_t option);
If the test process is running and makes progress, return 0 and put index of the lastest available report to the location pointed to by status;
If the test exits successfully, return tid and put index of the lastest available report to the location pointed to by status;
If the test exits with error, return tid and put the error code to the location pointed to by status;
If error occurs in function call, return the error code and put 0 to location pointed to by status;
If the test exits with error, return tid and put the error code to the location pointed to by status;
If error occurs in function call, return the error code and put 0 to the location pointed to by status;