tests: Fix bug in "weak references" test.
authorBen Pfaff <blp@nicira.com>
Fri, 7 May 2010 17:38:13 +0000 (10:38 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 7 May 2010 21:36:03 +0000 (14:36 -0700)
One part of the "weak references" test inserts invalid all-zeros weak
references into two columns and expects to get an error message mentioning
one of them.  Unfortunately the one that actually gets mentioned depends
on hash ordering and thus differs between big-endian and little-endian
machines.  This commit fixes the problem by only putting an invalid
reference in a single column, instead of two of them.

tests/ovsdb-execution.at

index bbdcbb505d1425365db53e6a31d37325928a37dd..a6f14355f6f5b19095b246486c5321528ffffb7e 100644 (file)
@@ -644,7 +644,8 @@ OVSDB_CHECK_EXECUTION([weak references],
    [[["weak",
       {"op": "insert",
        "table": "a",
-       "row": {}}]]],
+       "row": {"a2a1": ["named-uuid", "me"]},
+       "uuid-name": "me"}]]],
    dnl Try to delete row from "b" that is referred to by weak references
    dnl from "a" table "a2b" column that requires exactly one value.
    [[["weak",