Code

data_test: Removed unnecessary and possibly misleading checks.
authorSebastian Harl <sh@tokkee.org>
Sun, 19 Oct 2014 21:20:49 +0000 (23:20 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 19 Oct 2014 21:20:49 +0000 (23:20 +0200)
t/unit/core/data_test.c

index 9c736d399e291d12eb61c80ae0c3a83772393d2e..702afa487a0fa9aa7fbc31090f7d133f770ffe20 100644 (file)
@@ -174,13 +174,6 @@ START_TEST(test_data)
        fail_unless(d1.type == d2.type,
                        "sdb_data_copy() didn't copy type; got: %i; expected: %i",
                        d1.type, d2.type);
-       fail_unless(d1.data.re.raw == d2.data.re.raw,
-                       "sdb_data_copy() didn't copy raw regex: got: %s; expected: %s",
-                       d1.data.re.raw, d2.data.re.raw);
-
-       sdb_data_free_datum(&d1);
-       fail_unless(d1.data.re.raw == NULL,
-                       "sdb_data_free_datum() didn't reset raw regex");
 }
 END_TEST