From 48fd34781e2364cfa9c46b9c54862c37808f4c43 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 23 Feb 2020 15:20:12 -0500 Subject: [PATCH] Re-added test/events_errors.cpp. Yay C++ --- {zNEW_test => test}/events_errors.cpp | 6 ++++-- test/meson.build | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) rename {zNEW_test => test}/events_errors.cpp (98%) 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', ])