]> granicus.if.org Git - libevent/commitdiff
Make version test ignore the bottom byte of the version number.
authorNick Mathewson <nickm@torproject.org>
Thu, 23 Apr 2009 00:01:14 +0000 (00:01 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 23 Apr 2009 00:01:14 +0000 (00:01 +0000)
svn:r1225

test/regress.c

index 470b7d9794cbc8c4f7199dd6cf4643dd3dbce571..2af6c80a732ee85a36610aad423be91afd760fc6 100644 (file)
@@ -1408,7 +1408,7 @@ test_version(void *arg)
 
        n = sscanf(vstr, "%d.%d.%d", &major, &minor, &patch);
        tt_assert(3 == n);
-       tt_int_op(vint, ==, ((major<<24)|(minor<<16)|(patch<<8)));
+       tt_int_op((vint&0xffffff00), ==, ((major<<24)|(minor<<16)|(patch<<8)));
 end:
        ;
 }