[asterisk-bugs] [JIRA] (ASTERISK-26739) voicemail API test: confuses expected and actual values
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Fri Jan 20 22:55:10 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-26739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234782#comment-234782 ]
Asterisk Team commented on ASTERISK-26739:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> voicemail API test: confuses expected and actual values
> -------------------------------------------------------
>
> Key: ASTERISK-26739
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26739
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Tests/General
> Reporter: Tzafrir Cohen
> Severity: Trivial
>
> I had a voicemail test fail for me:
> {code}
> [test_voicemail_api.c:voicemail_api_nominal_msg_playback:1455]: Playing back message from test_vm_api_2345 to callback function with default context
> [test_voicemail_api.c:voicemail_api_nominal_msg_playback:1461]: Test failed for parameter 2: Expected [3], Actual [2]
> END /main/voicemail_api/ - nominal_msg_playback Time: 96ms Result: FAIL
> {code}
> However, the source of the test shows:
> {code}
> VM_API_INT_VERIFY(test_mbox_snapshot->total_msg_num, 2);
> {code}
> The expected value is 3? Not 2?
> Indeed, the macro up that source file:
> {code}
> #define VM_API_INT_VERIFY(expected, actual)
> {code}
> Thus I believe that most usages of that and similar macros in that file should be reversed (or change the macro. There are some correct usages of the macro).
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list