Change in libosmo-abis[master]: tests: trau_sync: Explicitly drop category from log

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/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Feb 19 11:52:12 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/22965 )


Change subject: tests: trau_sync: Explicitly drop category from log
......................................................................

tests: trau_sync: Explicitly drop category from log

Let's disable hex category here since we don't care about its formatting here.

In any case, every test relying on logging output validation should
always explicitly state the config to avoid issues in the future if
default values change.

Related: OS#5034
Change-Id: I332d1215fc7784a6647b90e2eb8b1efcd644002e
---
M tests/trau_sync/trau_sync_test.c
M tests/trau_sync/trau_sync_test.err
2 files changed, 16 insertions(+), 14 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/65/22965/1

diff --git a/tests/trau_sync/trau_sync_test.c b/tests/trau_sync/trau_sync_test.c
index d804b3e..88b5c6d 100644
--- a/tests/trau_sync/trau_sync_test.c
+++ b/tests/trau_sync/trau_sync_test.c
@@ -82,5 +82,7 @@
 	log_set_use_color(osmo_stderr_target, 0);
 	osmo_fsm_log_addr(false);
 	log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);
+	log_set_print_category(osmo_stderr_target, 0);
+	log_set_print_category_hex(osmo_stderr_target, 0);
 	test_body();
 }
diff --git a/tests/trau_sync/trau_sync_test.err b/tests/trau_sync/trau_sync_test.err
index 7e4a24a..7871054 100644
--- a/tests/trau_sync/trau_sync_test.err
+++ b/tests/trau_sync/trau_sync_test.err
@@ -1,14 +1,14 @@
-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Allocated
-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS
-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS
-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS
-<0000> trau_sync(test){WAIT_FRAME_ALIGN}: state_chg to FRAME_ALIGNED
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
-<0000> trau_sync(test){FRAME_ALIGNED}: state_chg to FRAME_ALIGNMENT_LOST
-<0000> trau_sync(test){FRAME_ALIGNMENT_LOST}: Received Event RX_BITS
+trau_sync(test){WAIT_FRAME_ALIGN}: Allocated
+trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS
+trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS
+trau_sync(test){WAIT_FRAME_ALIGN}: Received Event RX_BITS
+trau_sync(test){WAIT_FRAME_ALIGN}: state_chg to FRAME_ALIGNED
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: Received Event RX_BITS
+trau_sync(test){FRAME_ALIGNED}: state_chg to FRAME_ALIGNMENT_LOST
+trau_sync(test){FRAME_ALIGNMENT_LOST}: Received Event RX_BITS

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/22965
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I332d1215fc7784a6647b90e2eb8b1efcd644002e
Gerrit-Change-Number: 22965
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210219/561281d4/attachment.htm>


More information about the gerrit-log mailing list