Fixed the build. It works so far!

This commit is contained in:
Pietro Gagliardi 2020-02-18 01:08:38 -05:00
parent c269d1f6bc
commit a23bd0f786
2 changed files with 12 additions and 7 deletions

View File

@ -150,22 +150,27 @@ struct baseParams {
/*
static void runArgsSubtests(struct baseParams *p)
Test(xxxx_Args)
Te_st(xxxx_Args)
testImpl(xxxxx, true, NULL, (&p))
Test(xxxx_NoArgs)
Te_st(xxxx_NoArgs)
testImpl(xxxxx, true, NULL, NULL)
static void runGlobalSubtests(struct baseParams *p)
Test(xxxx_Global_Args)
Te_st(xxxx_Global_Args)
testImpl(xxxx, true, NULL, (&p))
Test(xxxx_Global_NoArgs)
Te_st(xxxx_Global_NoArgs)
testImpl(xxxxx, true, NULL, NULL)
Test(xxxx_Nonglobal_Args)
Te_st(xxxx_Nonglobal_Args)
testImpl(xxxxx, false, (&p), (&p))
Test(xxxx_Nonglobal_NoArgs)
Te_st(xxxx_Nonglobal_NoArgs)
testImpl(xxxxx, false, (&p), NULL)
*/
static void deferEventFree(void *data)
{
uiEventFree((uiEvent *) data);
}
static void deferUnregisterHandler(void *data)
{
unregisterHandler((struct handler *) data);

View File

@ -50,7 +50,7 @@ void TestDefer(void (*f)(void *data), void *data)
struct defer *d;
d = (struct defer *) malloc(sizeof (struct defer));
if (d != NULL) {
if (d == NULL) {
fprintf(stderr, "** internal error: memory exhausted in TestDefer()\n");
abort();
}