osmo-hlr/tests
Oliver Smith 63de00cfc1 db_hlr: zero-initialize "struct tm"
The last LU time gets read from the database as string, parsed with
strptime to "struct tm", and then gets converted to time_t with mktime.

A recent behavior change in glibc's mktime implementation unconvered,
that we don't have tm.tm_isdst (daylight saving time) set properly. As
"struct tm" was not initialized, and strptime did not write to tm_isdst,
it was set to a random value. When it was not 0, db_test failed on UTC
systems with a more recent glibc (e.g. Ubuntu 19.04).

Fix this by zero-initializing "struct tm" and remove the previous
workaround that made db_test pass on UTC systems.

Related: OS#4026
Change-Id: Iebbbe42fc5cd43324206d9433ede67b39251389c
2019-06-04 12:41:54 +02:00
..
auc tests: use -no-install libtool flag to avoid ./lt-* scripts 2019-03-19 13:04:49 +00:00
db db_hlr.c: add db_subscr_exists_by_msisdn() 2019-05-13 08:55:24 +02:00
gsup tests: use -no-install libtool flag to avoid ./lt-* scripts 2019-03-19 13:04:49 +00:00
gsup_server tests: use -no-install libtool flag to avoid ./lt-* scripts 2019-03-19 13:04:49 +00:00
Makefile.am VTY tests: fill DB before running test 2019-01-24 15:29:08 +00:00
test_nodes.vty Create subscribers on demand 2019-05-19 14:42:46 +07:00
test_subscr_create_on_demand.vty Create subscribers on demand 2019-05-19 14:42:46 +07:00
test_subscriber.ctrl test_subscriber.ctrl: test against octal/hex interpretation of id 2017-10-27 02:37:20 +02:00
test_subscriber.sql test_subscriber.ctrl: test against octal/hex interpretation of id 2017-10-27 02:37:20 +02:00
test_subscriber.vty VTY: integrate IMEI 2019-01-24 15:29:08 +00:00
test_subscriber.vty.sql VTY: integrate IMEI 2019-01-24 15:29:08 +00:00
test_subscriber_errors.ctrl ctrl test: fix: adjust expectations after stricter ctrl parsing 2018-01-07 22:27:08 +01:00
testsuite.at db_hlr: zero-initialize "struct tm" 2019-06-04 12:41:54 +02:00