diff --git a/zNEW_test/events_errors.cpp b/test/events_errors.cpp similarity index 98% rename from zNEW_test/events_errors.cpp rename to test/events_errors.cpp index 22f3b84c..4be893e4 100644 --- a/zNEW_test/events_errors.cpp +++ b/test/events_errors.cpp @@ -1,6 +1,8 @@ // 10 june 2019 #include "test.h" +// TODO consider rewriting this in C + static void dummyHandler(void *sender, void *args, void *data) { // do nothing @@ -306,7 +308,7 @@ static const struct checkErrorCase cases[] = { { NULL, NULL, NULL }, }; -testingTest(EventErrors) +Test(EventErrors) { - checkProgrammerErrors(t, cases); + checkProgrammerErrors(cases); } diff --git a/test/meson.build b/test/meson.build index 4a1fafac..49ece236 100644 --- a/test/meson.build +++ b/test/meson.build @@ -3,6 +3,7 @@ # Using files() is the cleanest way to ensure the python script below gets the right filenames regardless of how meson sandboxes the command it's running. libui_test_sources = files([ 'events.c', + 'events_errors.cpp', 'initmain.c', 'noinitwrongthread.c', ])