aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gb/bssgp_fc_tests.ok
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-11-16 22:32:36 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-11-20 17:22:42 +0100
commit0128c78ffe25196f53fbbc0884a9c4587f493224 (patch)
tree4f1548c5c737da07eb62eaee99ce2dc31ccb45dc /tests/gb/bssgp_fc_tests.ok
parent9541a683780d23b260c5c0f6b9a9572a7ac16a66 (diff)
bssgp_fc_test: sanitizer: free msgb context when done
Print remaining msgbs when done, then free the entire tall_msgb_context. To be able to do that, call msgb_talloc_ctx_init() and use its return value. A subsequent patch will fix a known mem leak and add assertions for 0b in 1 blocks remaining in the tall_msgb_context. Helps fix sanitizer build on debian 9. Change-Id: I67d347ab2642b0bfc27b21b44231a7f3146ff641
Diffstat (limited to 'tests/gb/bssgp_fc_tests.ok')
-rw-r--r--tests/gb/bssgp_fc_tests.ok4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gb/bssgp_fc_tests.ok b/tests/gb/bssgp_fc_tests.ok
index f8fca3cf..d1468434 100644
--- a/tests/gb/bssgp_fc_tests.ok
+++ b/tests/gb/bssgp_fc_tests.ok
@@ -56,6 +56,7 @@ size-max=100 oct, leak-rate=100 oct/s, queue-len=5 msgs, pdu_len=10 oct, pdu_cnt
30: FC OUT Nr 13
40: FC OUT Nr 14
50: FC OUT Nr 15
+msgb ctx: 685 b in 6 blocks (0 b in 1 block == just the context)
===== BSSGP flow-control test END
===== BSSGP flow-control test START
@@ -121,6 +122,7 @@ size-max=100 oct, leak-rate=100 oct/s, queue-len=100 msgs, pdu_len=10 oct, pdu_c
80: FC OUT Nr 18
90: FC OUT Nr 19
100: FC OUT Nr 20
+msgb ctx: 0 b in 1 blocks (0 b in 1 block == just the context)
===== BSSGP flow-control test END
===== BSSGP flow-control test START
@@ -166,6 +168,7 @@ size-max=100 oct, leak-rate=100 oct/s, queue-len=5 msgs, pdu_len=1000 oct, pdu_c
-> -5: PDU too large, msg dropped.
0: FC IN Nr 20
-> -5: PDU too large, msg dropped.
+msgb ctx: 0 b in 1 blocks (0 b in 1 block == just the context)
===== BSSGP flow-control test END
===== BSSGP flow-control test START
@@ -226,5 +229,6 @@ size-max=100 oct, leak-rate=100 oct/s, queue-len=5 msgs, pdu_len=10 oct, pdu_cnt
30: FC OUT Nr 13
40: FC OUT Nr 14
50: FC OUT Nr 15
+msgb ctx: 685 b in 6 blocks (0 b in 1 block == just the context)
===== BSSGP flow-control test END