From ab82278a3064fe2ba6c6d42477694c1eb2370309 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 13 Jun 2019 10:43:44 -0400 Subject: [PATCH] And got things building. Now to clean up the error macro part. --- test/controls.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/controls.c b/test/controls.c index b4bb5309..4dbda774 100644 --- a/test/controls.c +++ b/test/controls.c @@ -70,14 +70,13 @@ static const struct { testingTest(ControlErrors) { struct checkControlErrorsParams p; - uiControlVtable vtable; uiControlVtable vtableBadSize; size_t i; memset(&p, 0, sizeof (struct checkControlErrorsParams)); p.namePlaceholder = "name"; - createTestVtable(&vtable); - p.vtablePlaceholder = &vtable; + p.vtablePlaceholder = allocVtable(t); + testingTDefer(t, deferFree, p.vtablePlaceholder); // TODO osVtablePlaceholder p.implDataSizePlaceholder = sizeof (struct testImplData); memset(&vtableBadSize, 0, sizeof (uiControlVtable));