From d5c06108d69374b0e4558749c8bc793e4a5482c3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 2 Jun 2020 22:52:56 -0400 Subject: [PATCH] Added the missing noinitwrongthread Unix tests. --- test/allcalls_unix.h | 5 +++++ test/meson.build | 4 ++++ test/noinitwrongthread_unix.c | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 test/allcalls_unix.h create mode 100644 test/noinitwrongthread_unix.c diff --git a/test/allcalls_unix.h b/test/allcalls_unix.h new file mode 100644 index 00000000..f21abdca --- /dev/null +++ b/test/allcalls_unix.h @@ -0,0 +1,5 @@ +// 28 may 2019 + +// This file should NOT have include guards as it is intended to be included more than once; see noinitwrongthread_unix.c for details. + +allcallsCase(uiUnixControlHandle, NULL) diff --git a/test/meson.build b/test/meson.build index cd900ca6..2907a036 100644 --- a/test/meson.build +++ b/test/meson.build @@ -35,8 +35,12 @@ elif libui_OS == 'haiku' else libui_test_sources += files([ 'controls_unix.c', + 'noinitwrongthread_unix.c', 'window_unix.c', ]) + libui_allcalls_headers += files([ + 'allcalls_unix.h', + ]) endif libui_test_sources_without_cases = [ diff --git a/test/noinitwrongthread_unix.c b/test/noinitwrongthread_unix.c new file mode 100644 index 00000000..d1d744ca --- /dev/null +++ b/test/noinitwrongthread_unix.c @@ -0,0 +1,6 @@ +// 28 may 2019 +#include "test_unix.h" +#include "thread.h" + +#define allcallsHeader "allcalls_unix.h" +#include "noinitwrongthreadimpl.h"