libosmocore/tests
Neels Hofmeyr 7c1ec8c8e7 ctrl_type_vals: explicitly terminate
Don't use CTRL_TYPE_UNKNOWN as value_string[] terminator, use an explicit, more
obvious { 0, NULL } termination. Set an explicit string for CTRL_TYPE_UNKNOWN.
No other value_string[]s to date have such a "hidden" terminator.

BTW, a { 0, "string" } item is not a terminator, only { 0, NULL } is, so we can
set a string for CTRL_TYPE_UNKNOWN == 0.

Also, having a string value for CTRL_TYPE_UNKNOWN is not harmful because all
code paths explicitly check for the CTRL_TYPE_*s that are valid.

Adjust the test expectation.

From the ctrl_type_vals enum, remove the = 0, because it is implicitly 0
anyway.

One motivation to press this fixup: I am trying to add a script that checks
whether all value_string[]s are terminated to our jenkins jobs, and to find
that this one is terminated, it would need to interpret the CTRL_TYPE_UNKNOWN
constant, which would make things far more complex. At this point, all of the
value_string[]s have an explicit termination, and I would like to enforce this
from now on -- for readable code and to not spend more time on the validator.

The patch adding ctrl_type_vals (Icd4e96dd9f00876cb70b43cfcf42ab4f10311b28) was
accepted by another reviewer before I could reconfirm my -1, so this is a fixup
to enable the termination checking script patches.

Related: I2bc93ab4781487e7685cfb63091a489cd126b1a8 (adds script to libosmocore)
         I7fe3678b524d602fc6aa14bc0ed06308df809a3e (uses in jenkins.sh)
	 Icd4e96dd9f00876cb70b43cfcf42ab4f10311b28 (adds ctrl_type_vals)

Change-Id: Ia99f37464c7b36b587da2cc78f52c82725f02cbc
2017-03-15 13:47:20 +00:00
..
a5 fix compiler warnings for a5 tests 2015-04-07 20:08:38 +02:00
auth milenage_test: cosmetic: verify AUTS in comments 2017-03-15 13:46:58 +00:00
bits bitcomp: Remove the t4 decoding from libosmocore 2016-11-10 17:07:45 +00:00
bitvec Add function to get uninterrupted bit run 2017-01-06 10:37:42 +00:00
codec DTX: fix AMR SID-FIRST detection 2017-01-10 23:28:12 +00:00
coding libosmocoding: migrate transcoding routines from OsmoBTS 2017-03-07 01:06:38 +07:00
comp128 tests: test actual support status for auth. algo 2016-06-29 16:33:40 +00:00
conv tests/conv: separate test logic 2017-03-06 17:06:45 +00:00
ctrl ctrl_type_vals: explicitly terminate 2017-03-15 13:47:20 +00:00
fr fr_test: Speculative build fix for FreeBSD 2013-01-15 21:18:02 +01:00
fsm fsm_test.c: fix compiler warning: timer cb return type 2016-12-24 17:11:52 +00:00
gb bssgp_fc_test: do not use real time 2017-02-07 00:39:54 +00:00
gea Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
gprs gsm: Add APN conversion functions 2016-01-15 14:46:19 +01:00
gsm0408 gsm0408_test: initialize msgb talloc ctx 2016-09-27 11:46:38 +02:00
gsm0808 test: Fix compiler warnings on 64bit systems 2015-11-09 16:46:03 +00:00
gsup gsup_test: also check stderr 2017-02-22 07:29:46 +00:00
kasumi kasumi: Fix build with gcc5 that changed behavior of inline 2016-01-21 15:50:04 +01:00
lapd lapd_test: avoid calling memcpy with NULL source 2017-01-06 10:03:30 +00:00
logging fix logging: log_set_category_filter() for internal DL* logging cats 2016-12-12 16:56:54 +01:00
loggingrb logginrb: Fix compiler warning about fprintf 2015-04-11 19:33:10 +02:00
msgb Fix msgb_test on 64 bit architectures 2016-12-09 17:59:58 +01:00
msgfile build: resolve compiler warning about implicit delcaration 2014-10-04 11:49:23 +02:00
oap GSUP, OAP, osmo-gen-vec: fix AUTS length to 14, not 16 2017-02-02 20:34:16 +01:00
osmo-auc-gen osmo-auc-gen: clarify SQN output, prepare for SQN changes 2017-03-15 12:46:08 +00:00
sim sim: Fix compiler warning and by this fixing the test result 2016-03-21 11:29:16 +01:00
sms test: Fix compiler warnings on 64bit systems 2015-11-09 16:46:03 +00:00
smscb test: Fix compiler warnings on 64bit systems 2015-11-09 16:46:03 +00:00
socket cosmetic: replace fprintf with LOGP 2017-02-09 16:21:01 +01:00
stats stats_test: fix mismatching osmo_stats_reporter->send_item signature 2017-01-15 18:10:15 +00:00
strrb utils: Introduce OSMO_ASSERT in the utils and use it in the unit tests 2013-03-09 23:52:29 +01:00
timer timer_test: set 8 as default steps, use the default in testsuite.at 2016-09-22 07:18:39 +02:00
tlv tlv: Import osmo_shift_* and osmo_match_shift_* from openbsc 2016-05-05 18:49:27 +02:00
ussd ussd: Decode interrogateSS that doesn't have test 2016-07-12 17:45:34 +02:00
utils osmo_hexparse: allow whitespace in parsed string, add ws test 2017-02-14 15:59:22 +01:00
vty stats/test: Add tests to check VTY configuration 2015-08-22 01:34:05 +00:00
write_queue wqueue: Reject messges if queue is considered full 2016-12-09 11:37:37 +01:00
Makefile.am add osmo-auc-gen_test 2017-03-15 12:46:08 +00:00
atlocal.in build: make check: disable sim_test when built with --disable-pcsc 2016-11-16 16:40:44 +00:00
testsuite.at add osmo-auc-gen_test 2017-03-15 12:46:08 +00:00