From 3d79b6ee36b250644e6cf70eee8e3076d94cbb7f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Dec 2022 20:26:13 -0500 Subject: Use Zix attributes directly --- test/headers/meson.build | 2 +- test/headers/test_headers.c | 3 ++- test/test_string.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/headers/meson.build b/test/headers/meson.build index 6cb14f6e..bf8a2456 100644 --- a/test/headers/meson.build +++ b/test/headers/meson.build @@ -37,7 +37,7 @@ test( 'test_headers', files('test_headers.c'), c_args: header_c_suppressions, - dependencies: serd_dep, + dependencies: [serd_dep, zix_dep], ), suite: 'unit', ) diff --git a/test/headers/test_headers.c b/test/headers/test_headers.c index 62be0976..48b1814b 100644 --- a/test/headers/test_headers.c +++ b/test/headers/test_headers.c @@ -2,8 +2,9 @@ // SPDX-License-Identifier: ISC #include "serd/serd.h" // IWYU pragma: keep +#include "zix/attributes.h" -SERD_CONST_FUNC int +ZIX_CONST_FUNC int main(void) { return 0; diff --git a/test/test_string.c b/test/test_string.c index 49106f0a..b551b9fe 100644 --- a/test/test_string.c +++ b/test/test_string.c @@ -3,10 +3,10 @@ #undef NDEBUG -#include "serd/attributes.h" #include "serd/node.h" #include "serd/status.h" #include "serd/string.h" +#include "zix/attributes.h" #include #include @@ -38,7 +38,7 @@ test_strerror(void) assert(!strcmp(msg, "Unknown error")); } -SERD_PURE_FUNC int +ZIX_PURE_FUNC int main(void) { test_strlen(); -- cgit v1.2.1