unit-tests: Let identity equality test fail if a->equals(b) != b->equals(a)
authorMartin Willi <martin@revosec.ch>
Tue, 8 Oct 2013 12:33:12 +0000 (14:33 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 31 Oct 2013 20:57:07 +0000 (21:57 +0100)
src/libstrongswan/tests/test_identification.c

index b0b3ce8..54a0ba0 100644 (file)
@@ -360,7 +360,7 @@ static bool id_equals(identification_t *a, char *b_str)
 
        b = identification_create_from_string(b_str);
        equals = a->equals(a, b);
-       equals = equals && b->equals(b, a);
+       ck_assert_int_eq(equals, b->equals(b, a));
        b->destroy(b);
        return equals;
 }