]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test_config: Fix failure and segfault when config_hook is run twice.
authorCorey Farrell <git@cfware.com>
Mon, 23 Oct 2017 17:42:37 +0000 (13:42 -0400)
committerCorey Farrell <git@cfware.com>
Mon, 23 Oct 2017 17:46:09 +0000 (12:46 -0500)
commit6cec3149be3f22fac069cfce89e9cdc8bf37a008
treee98ffa56237b45684e9dc0b339b7911ff710fa67
parent302626c11529cfebcdd63e801ff2ab513eabaede
test_config: Fix failure and segfault when config_hook is run twice.

On second run the config_hook test was unexpectedly failing to load
test_config.conf because it was still unmodified since the last load.
This is fixed by not passing CONFIG_FLAG_FILEUNCHANGED for the initial
loads, only using it when we are tested that a reload of unmodified
files do not initiate the hook.

ASTERISK-25960

Change-Id: Ifd679509a23ed163e5cc647490bf7df4ae3cd856
tests/test_config.c