[PATCH] libosmocore[master]: logging test: cosmetic: print target and don't print color

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

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Dec 12 15:09:56 UTC 2016


Review at  https://gerrit.osmocom.org/1413

logging test: cosmetic: print target and don't print color

Prepares for upcoming modifications of the logging test to show and fix bugs in
the logging system.

Change-Id: I9461b987adf85d87469a6af55de5f1aa478f6ebb
---
M tests/logging/logging_test.c
M tests/logging/logging_test.err
2 files changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/13/1413/1

diff --git a/tests/logging/logging_test.c b/tests/logging/logging_test.c
index 3d1b7d8..91b0aaf 100644
--- a/tests/logging/logging_test.c
+++ b/tests/logging/logging_test.c
@@ -75,6 +75,8 @@
 	log_add_target(stderr_target);
 	log_set_all_filter(stderr_target, 1);
 	log_set_print_filename(stderr_target, 0);
+	log_set_print_category(stderr_target, 1);
+	log_set_use_color(stderr_target, 0);
 
 	log_parse_category_mask(stderr_target, "DRLL:DCC");
 	log_parse_category_mask(stderr_target, "DRLL");
diff --git a/tests/logging/logging_test.err b/tests/logging/logging_test.err
index 4891491..4a350fa 100644
--- a/tests/logging/logging_test.err
+++ b/tests/logging/logging_test.err
@@ -1,4 +1,3 @@
-You should see this
-You should see this
-You should see this
-
\ No newline at end of file
+DRLL You should see this
+DCC You should see this
+DRLL You should see this

-- 
To view, visit https://gerrit.osmocom.org/1413
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9461b987adf85d87469a6af55de5f1aa478f6ebb
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list