/*****************************************************************
 ** @author   STF 572
 ** @version  0.0.1
 ** @purpose  1:21.3.10, call operation calling a function with no timeout
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

// The following requirements are tested:
// Similar to the start operation on test components which is not blocking, the blocking call
// operation implicitly uses a start operation, but waits until either the started behaviour has
// terminated or some timeout has occurred.

module Sem_210310_call_test_component_operation_001 {

    type component GeneralComp {}

	function f() runs on GeneralComp {
	    timer t := 1.0;
		t.start;
		t.timeout;
		setverdict(pass);
	}

    testcase TC_Sem_210310_call_test_component_operation_001() runs on GeneralComp system GeneralComp {
        var GeneralComp v_ptc := GeneralComp.create;
        v_ptc.call(f());
		if (v_ptc.running) {
		    setverdict(fail);
		} else {
		    setverdict(pass);
		}
    }

    control {
        execute(TC_Sem_210310_call_test_component_operation_001(), 5.0);
    }
}