Merge "app_voicemail: Fix test_voicemail_notify_endl test."
This commit is contained in:
commit
fddec0c266
1 changed files with 2 additions and 0 deletions
|
@ -14456,11 +14456,13 @@ AST_TEST_DEFINE(test_voicemail_notify_endl)
|
||||||
rewind(file);
|
rewind(file);
|
||||||
while (fgets(buf, sizeof(buf), file)) {
|
while (fgets(buf, sizeof(buf), file)) {
|
||||||
if (
|
if (
|
||||||
|
(strlen(buf) > 1 &&
|
||||||
#ifdef IMAP_STORAGE
|
#ifdef IMAP_STORAGE
|
||||||
buf[strlen(buf) - 2] != '\r'
|
buf[strlen(buf) - 2] != '\r'
|
||||||
#else
|
#else
|
||||||
buf[strlen(buf) - 2] == '\r'
|
buf[strlen(buf) - 2] == '\r'
|
||||||
#endif
|
#endif
|
||||||
|
)
|
||||||
|| buf[strlen(buf) - 1] != '\n') {
|
|| buf[strlen(buf) - 1] != '\n') {
|
||||||
res = AST_TEST_FAIL;
|
res = AST_TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue