L1CTL: Quickly fail in case of non-successful FBSB.resp
Change-Id: I9d1fdb196eee7b3b06f2d3622e59d58f402dcd0d
diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index dd5abc9..b82419e 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -26,6 +26,9 @@
T.start
alt {
[] pt.receive(t_L1CTL_FBSB_CONF(0)) {};
+ [] pt.receive(t_L1CTL_FBSB_CONF(?)) {
+ setverdict(fail, "FBSB Failed with non-zero return code");
+ };
[] pt.receive { repeat; };
[] T.timeout { setverdict(fail, "Timeout in FBSB") };
}