Make version test ignore the bottom byte of the version number.

svn:r1225
This commit is contained in:
Nick Mathewson 2009-04-23 00:01:14 +00:00
parent e2b987ede1
commit 0068c98ad2

View 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:
;
}