Change in osmo-ttcn3-hacks[master]: RSL_Emulation: Stop with error verdict if conn table runs out of space

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Jul 7 16:19:01 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9903 )

Change subject: RSL_Emulation: Stop with error verdict if conn table runs out of space
......................................................................

RSL_Emulation: Stop with error verdict if conn table runs out of space

Change-Id: If1a002da97cf1b66855f2e7a0fe2a54a6428bc81
---
M library/RSL_Emulation.ttcn
1 file changed, 4 insertions(+), 6 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/library/RSL_Emulation.ttcn b/library/RSL_Emulation.ttcn
index 119a9be..325f22e 100644
--- a/library/RSL_Emulation.ttcn
+++ b/library/RSL_Emulation.ttcn
@@ -195,7 +195,7 @@
 			return;
 		}
 	}
-	setverdict(fail, "No free entry in conn table for ", ra, fn);
+	testcase.stop("No free entry in conn table for ", ra, fn);
 }
 
 /* create an ew client with given RA and FN */
@@ -212,7 +212,7 @@
 			return;
 		}
 	}
-	setverdict(fail, "No free entry in conn table for ", trx_nr, chan_nr, comp_ref);
+	testcase.stop("No free entry in conn table for ", trx_nr, chan_nr, comp_ref);
 }
 
 
@@ -263,8 +263,7 @@
 			return;
 		}
 	}
-	setverdict(fail, "No space left in LastActTable to store chan_act for ", chan_nr);
-	self.stop;
+	testcase.stop("No space left in LastActTable to store chan_act for ", chan_nr);
 }
 
 private function f_lookup_last_act(uint8_t trx_nr, RslChannelNr chan_nr)
@@ -275,8 +274,7 @@
 			return LastActTable[i].chan_act;
 		}
 	}
-	setverdict(fail, "No LastActTable entry found for TRX ", trx_nr, " ", chan_nr);
-	self.stop;
+	testcase.stop("No LastActTable entry found for TRX ", trx_nr, " ", chan_nr);
 }
 
 private function f_last_act_table_init() runs on RSL_Emulation_CT {

-- 
To view, visit https://gerrit.osmocom.org/9903
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If1a002da97cf1b66855f2e7a0fe2a54a6428bc81
Gerrit-Change-Number: 9903
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180707/859c6cf1/attachment.htm>


More information about the gerrit-log mailing list