[PATCH] bssgp/test: Add missing START/END printfs

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/OpenBSC@lists.osmocom.org/.

Jacob Erlbeck jerlbeck at sysmocom.de
Thu Jun 18 09:51:34 UTC 2015


Sponsored-by: On-Waves ehf
---
 tests/gb/gprs_bssgp_test.c  | 7 ++++++-
 tests/gb/gprs_bssgp_test.ok | 2 ++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/gb/gprs_bssgp_test.c b/tests/gb/gprs_bssgp_test.c
index 63abf8b..14ba4d1 100644
--- a/tests/gb/gprs_bssgp_test.c
+++ b/tests/gb/gprs_bssgp_test.c
@@ -173,10 +173,13 @@ static void test_bssgp_status(void)
 
 static void test_bssgp_bad_reset()
 {
-	struct msgb *msg = bssgp_msgb_alloc();
+	struct msgb *msg;
 	uint16_t bvci_be = htons(2);
 	uint8_t cause = BSSGP_CAUSE_OML_INTERV;
 
+	printf("----- %s START\n", __func__);
+	msg = bssgp_msgb_alloc();
+
 	msgb_v_put(msg, BSSGP_PDUT_BVC_RESET);
 	msgb_tvlv_put(msg, BSSGP_IE_BVCI, sizeof(bvci_be), (uint8_t *)&bvci_be);
 	msgb_tvlv_put(msg, BSSGP_IE_CAUSE, sizeof(cause), &cause);
@@ -184,6 +187,8 @@ static void test_bssgp_bad_reset()
 	msgb_bvci(msg) = 0xbad;
 
 	msgb_bssgp_send_and_free(msg);
+
+	printf("----- %s END\n", __func__);
 }
 
 static void test_bssgp_flow_control_bvc(void)
diff --git a/tests/gb/gprs_bssgp_test.ok b/tests/gb/gprs_bssgp_test.ok
index a011bee..83d633b 100644
--- a/tests/gb/gprs_bssgp_test.ok
+++ b/tests/gb/gprs_bssgp_test.ok
@@ -7,6 +7,8 @@ BSSGP primitive, SAP 16777219, prim = 4, op = 0, msg = 0e 1f 84 f0 12 34 56 1b 8
 BSSGP primitive, SAP 16777221, prim = 11, op = 2, msg = 41 07 81 27 
 BSSGP primitive, SAP 16777221, prim = 11, op = 2, msg = 41 07 81 05 04 82 04 d2 
 ----- test_bssgp_status END
+----- test_bssgp_bad_reset START
+----- test_bssgp_bad_reset END
 ----- test_bssgp_flow_control_bvc START
 Got message: 26 1e 81 2a 05 82 10 22 03 82 c0 40 01 82 08 11 1c 82 60 20 
 Got message: 26 1e 81 2a 05 82 10 22 03 82 c0 40 01 82 08 11 1c 82 60 20 3c 81 78 06 82 11 44 
-- 
1.9.1




More information about the OpenBSC mailing list