diff --git a/libgnucash/engine/test/test-customer.c b/libgnucash/engine/test/test-customer.c index 7856798ef96..fc3cc52eca6 100644 --- a/libgnucash/engine/test/test-customer.c +++ b/libgnucash/engine/test/test-customer.c @@ -87,12 +87,13 @@ test_customer (void) test_bool_fcn (book, "Active", gncCustomerSetActive, gncCustomerGetActive); - do_test (gncCustomerGetAddr (customer) != NULL, "Addr"); - do_test (gncCustomerGetShipAddr (customer) != NULL, "ShipAddr"); - guid_replace (&guid); customer = gncCustomerCreate (book); count++; + + do_test (gncCustomerGetAddr (customer) != NULL, "Addr"); + do_test (gncCustomerGetShipAddr (customer) != NULL, "ShipAddr"); + gncCustomerSetGUID (customer, &guid); do_test (guid_equal (&guid, gncCustomerGetGUID (customer)), "guid compare"); }