Code

dbi_test: Make tests support CK_FORK=no.
authorSebastian Harl <sh@tokkee.org>
Thu, 2 Jan 2014 00:14:17 +0000 (01:14 +0100)
committerSebastian Harl <sh@tokkee.org>
Thu, 2 Jan 2014 00:14:17 +0000 (01:14 +0100)
… by resetting state as needed.

t/utils/dbi_test.c

index c355e6442cf9b29eb3050d766751a683f191d3e6..10447e9962980108c1aa430ad27253f0d2d381f2 100644 (file)
@@ -403,6 +403,8 @@ setup(void)
        client = sdb_dbi_client_create("mockdriver", "mockdatabase");
        fail_unless(client != NULL,
                        "sdb_dbi_client_create() = NULL; expected client object");
+
+       dbi_conn_connect_called = 0;
 } /* setup */
 
 static void