mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
test_voicemail_api: Add check for a registered voicemail provider before tests.
It is much nicer diagnosing a test failure if app_voicemail is actually loaded. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -72,7 +72,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
* envelope files on the file system
|
||||
*/
|
||||
#define VM_API_TEST_SETUP do { \
|
||||
if (test_vm_api_test_setup()) { \
|
||||
if (!ast_vm_is_registered()) { \
|
||||
ast_test_status_update(test, "No voicemail provider registered.\n"); \
|
||||
return AST_TEST_FAIL; \
|
||||
} else if (test_vm_api_test_setup()) { \
|
||||
VM_API_TEST_CLEANUP; \
|
||||
ast_test_status_update(test, "Failed to set up necessary mock objects for voicemail API test\n"); \
|
||||
return AST_TEST_FAIL; \
|
||||
|
Reference in New Issue
Block a user