]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
test_cel: Fix unit tests broken due to event def changes from res_corosync
authorMatthew Jordan <mjordan@digium.com>
Fri, 23 May 2014 17:35:52 +0000 (17:35 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 23 May 2014 17:35:52 +0000 (17:35 +0000)
This patch instructs test_cel to skip any IE types it doesn't care about. The
addition of the raw and bitfield types caused the tests to fail.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@414528 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_cel.c

index 791a73c6c8b0548cab0ec4f49c23a1471b9d6b8f..501b99fab1d054bc0219a1cb8fb0b1120871ae3a 100644 (file)
@@ -1856,6 +1856,10 @@ static int match_ie_val(
 
                return !strcmp(str1, str2);
        }
+       case AST_EVENT_IE_PLTYPE_RAW:
+       case AST_EVENT_IE_PLTYPE_BITFLAGS:
+               /* Fall through: just pass on these types */
+               return 1;
        default:
                break;
        }