Open topic with navigation
In the following example, the status of transaction t1 is changed to a fail status because a general error has occurred. Note that the exit status of transaction t2 is unaffected by this call to lr_set_transaction_status. Since the default value of LR_AUTO is LR_PASS, it will return a passed exit status.
if (event == GENERAL_ERROR) lr_set_transaction_status_by_name(LR_FAIL, "t1"); lr_end_transaction("t1", LR_AUTO); lr_end_transaction("t2", LR_AUTO);