Fixed errors.c.

This commit is contained in:
Pietro Gagliardi 2020-01-26 20:06:12 -05:00
parent 001e439a9b
commit 9ceed7c62d
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
// 28 may 2019
#include "test.h"
#include "thread.h"
#include "../common/testhooks.h"
// Do not put any test cases in this file; they will not be run.
@ -71,11 +73,11 @@ void checkProgrammerErrorsFull(const char *file, long line, const struct checkEr
const struct checkErrorCase *c;
struct checkProgrammerErrorParams p;
uiprivTestHookReportProgrammerError(handleProgrammerError, p);
memset(&p, 0, sizeof (struct checkProgrammerErrorParams));
p.file = file;
p.line = line;
p.inThread = inThread;
uiprivTestHookReportProgrammerError(handleProgrammerError, &p);
for (c = cases; c->name != NULL; c++) {
p.caught = false;
p.f = c->f;