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:42:37 +0000 (13:42 -0400)
commita9e9608982bcdf983848e0db83bfa08eefc14d7f
tree362bce6683b398d2964b4cfb5bc0a3c165a270d8
parent8b719a3e48a7dd95a9f5e80a2bcdde822f26bdb4
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