NO_MESSAGE

System Testing Test Script Language.

Syntax

NO_MESSAGE

Description

The NO_MESSAGE instruction is used to exit the callback if no message has been received.

This instruction has to appear once in a callback or in a procedure called in a callback.

The MESSAGE_DATE instruction must be used in a callback.

Example

COMMTYPE socket IS socket_id_t

CHANNEL socket: ch

MESSAGE client_info_t: msg

CALLBACK client_info_t: info ON socket: id   

CALL read(id, &info, sizeof(client_info_t))@@ret   

IF (ret == 0) THEN    

NO_MESSAGE   

END IF   

MESSAGE_DATE   

END CALLBACK

Related Topics

CALLBACK