diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-08-26 14:08:51 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-09-09 06:43:30 +0000 |
commit | 52c6ae25be2d551ff5f484c70e130eec62ca3720 (patch) | |
tree | 19a722541795d959503fb731aa786cc17f704516 | |
parent | 6648fe8f1ebcf7d082ad3d957f14565cfbb3a142 (diff) |
tests: don't log filename nor color in unit tests
In experr, we had line numbers in log output, which might change. Also, for
make distcheck, the path of the source file might have some '../../' added in
the log output (to indicate the src dir as seen from the build dir).
Fix both by dropping source file and line.
Also drop color while at it.
Change-Id: Ie76384c4176ce0a7d89d093f2efb848fe3f19400
-rw-r--r-- | src/tests/test-helpers.err | 5 | ||||
-rw-r--r-- | src/tests/test_common.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/test-helpers.err b/src/tests/test-helpers.err index 81b79e1..891094a 100644 --- a/src/tests/test-helpers.err +++ b/src/tests/test-helpers.err @@ -1,3 +1,2 @@ -<0004> ranap_common.c:508 Invalid PLMN Identity size: should be 3, is 2 -[0;m<0004> ranap_common.c:522 Invalid LAC size: should be 2, is 1 -[0;m
\ No newline at end of file +Invalid PLMN Identity size: should be 3, is 2 +Invalid LAC size: should be 2, is 1 diff --git a/src/tests/test_common.c b/src/tests/test_common.c index 4e4c10c..a79d5f5 100644 --- a/src/tests/test_common.c +++ b/src/tests/test_common.c @@ -85,4 +85,7 @@ int test_common_init(void) exit(1); ranap_set_log_area(DRANAP); + + log_set_print_filename(osmo_stderr_target, 0); + log_set_use_color(osmo_stderr_target, 0); } |