1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:24.1, Ensure overwriting rules for global verdict: none can't overwrite fail.
13 ** @verdict pass accept, ttcn3verdict:fail
14 *****************************************************************/
16 * #reqname /Requirements/24 Test verdict operations/24.1 The Verdict mechanism/Overwriting rules for setverdict
20 module Sem_2401_GlobalVerdict_010 {
21 type component GeneralComp {}
23 function set_PTC_verdict_fail() runs on GeneralComp {
27 function set_PTC_verdict_none() runs on GeneralComp {
31 testcase TC_Sem_2401_GlobalVerdict_010() runs on GeneralComp system GeneralComp {
32 var GeneralComp PTC1, PTC2;
34 PTC1 := GeneralComp.create;
35 PTC2 := GeneralComp.create;
36 PTC1.start(set_PTC_verdict_fail());
37 PTC2.start(set_PTC_verdict_none());
39 // Verdict none can't overwrite fail
43 execute(TC_Sem_2401_GlobalVerdict_010());