libosmocore/tests/logging
Neels Hofmeyr ea6f519ff8 vty logging: fix crash when missing 'logging enable'
We must explicitly check the return value of osmo_log_vty2tgt(), or may run
into a segfault. I wasn't aware of this and introduced numerous such cases in
I36f17c131cc70ce5a1aef62fd9693097de230cd4.

Reproduce: on the VTY, do not issue 'logging enable', invoke 'logging level
force-all LEVEL' first.

Show in logging_vty_test.vty that this situation is now again amended by
telling the user that logging was not enabled.

Related: OS#3611
Change-Id: Id11702d1801d6654ca5e5a51b597a0d802e2e8dd
2018-10-01 15:58:20 +02:00
..
logging_test.c license: Fix the license to GPL 2017-12-09 13:03:29 +00:00
logging_test.err fix logging: log_set_category_filter() for internal DL* logging cats 2016-12-12 16:56:54 +01:00
logging_test.ok logging: Move the logging test from OpenBSC into libosmocore 2012-09-27 16:29:54 +02:00
logging_vty_test.c logging vty: add VTY transcript test 2018-09-12 03:06:37 +02:00
logging_vty_test.vty vty logging: fix crash when missing 'logging enable' 2018-10-01 15:58:20 +02:00