Fix crashing unit tests with regards to RLS.
authorMark Michelson <mmichelson@digium.com>
Mon, 11 Aug 2014 17:40:07 +0000 (17:40 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 11 Aug 2014 17:40:07 +0000 (17:40 +0000)
commitdb0a97f8ce107aaf43b860eb0b5b3711bbc1d73c
tree3493222cf726bf5f3c93267d8b0743892554debf
parentb4e33c81e320a847be7b487c270c7be52ebe64fb
Fix crashing unit tests with regards to RLS.

The unit tests require a sorcery.conf file that has been
set up to store resource lists in memory rather than retrieving
from configuration.

With a setup that is not conducive to running the tests, a fault
in sorcery currently causes Asterisk to crash when attempting to
run any of the tests.

To get around the crash, this adds a function that verifies the
current environment and marks the tests as "not run" if the setup
is not correct.
........

Merged revisions 420779 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_pubsub.c