[ovs-dev] [PATCH 3/7] tests: Fix bug in "weak references" test.

Ben Pfaff blp at nicira.com
Fri May 7 21:01:48 UTC 2010


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 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/ovsdb-execution.at b/tests/ovsdb-execution.at
index bbdcbb5..a6f1435 100644
--- a/tests/ovsdb-execution.at
+++ b/tests/ovsdb-execution.at
@@ -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",
-- 
1.6.5





More information about the dev mailing list