From dac968f62af1815b8bedc126e94397c2d979e0a8 Mon Sep 17 00:00:00 2001 From: jpeeler Date: Tue, 2 Mar 2010 18:31:05 +0000 Subject: [PATCH] fix build by checking result of symlink in test_voicemail_vmsayname git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249891 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_voicemail.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 085451ac5..c146fe11c 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -11707,7 +11707,10 @@ AST_TEST_DEFINE(test_voicemail_vmsayname) snprintf(dir, sizeof(dir), "%s/sounds/beep.gsm", ast_config_AST_VAR_DIR); snprintf(dir2, sizeof(dir2), "%s%s/%s/greet.gsm", VM_SPOOL_DIR, TEST_CONTEXT, TEST_EXTENSION); /* we're not going to hear the sound anyway, just use a valid gsm audio file */ - symlink(dir, dir2); + if ((res = symlink(dir, dir2))) { + ast_log(LOG_WARNING, "Symlink reported %s\n", strerror(errno)); + goto exit_vmsayname_test; + } ast_test_status_update(test, "Test playing created mailbox greeting...\n"); snprintf(dir, sizeof(dir), "%s@%s", TEST_EXTENSION, TEST_CONTEXT); /* not a dir, don't get confused */ res = vmsayname_exec(test_channel1, dir);