X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fcheck-structs.at;h=4163c30d6dbe03d6c60de4cce218284f42192446;hb=aaea735bb6dad1b37941bd2de4b61a58af55bcde;hp=a926a0fb5393fe5bcba5e4ef92fae6a2035fdaa4;hpb=f937ccc2321d9bcb946fca249ec718531553a9bc;p=sliver-openvswitch.git diff --git a/tests/check-structs.at b/tests/check-structs.at index a926a0fb5..4163c30d6 100644 --- a/tests/check-structs.at +++ b/tests/check-structs.at @@ -11,7 +11,7 @@ m4_define([RUN_STRUCT_CHECKER], AT_SETUP([check struct tail padding]) RUN_STRUCT_CHECKER( [struct xyz { - uint16_t x; + ovs_be16 x; };], [1], [], [test.h:3: warning: struct xyz needs 2 bytes of tail padding @@ -21,8 +21,8 @@ AT_CLEANUP AT_SETUP([check struct internal alignment]) RUN_STRUCT_CHECKER( [struct xyzzy { - uint16_t x; - uint32_t y; + ovs_be16 x; + ovs_be32 y; };], [1], [], [test.h:3: warning: struct xyzzy member y is 2 bytes short of 4-byte alignment @@ -32,7 +32,7 @@ AT_CLEANUP AT_SETUP([check struct declared size]) RUN_STRUCT_CHECKER( [struct wibble { - uint64_t z; + ovs_be64 z; }; OFP_ASSERT(sizeof(struct wibble) == 12); ], @@ -44,11 +44,11 @@ AT_CLEANUP AT_SETUP([check wrong struct's declared size]) RUN_STRUCT_CHECKER( [struct moo { - uint64_t bar; + ovs_be64 bar; }; OFP_ASSERT(sizeof(struct moo) == 8); struct wibble { - uint64_t z; + ovs_be64 z; }; OFP_ASSERT(sizeof(struct moo) == 8); ], [1], [], [test.h:8: warning: checking size of struct moo but struct wibble was most recently defined