summaryrefslogtreecommitdiffstats
path: root/tests/include/tests/test.h
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-01-10 14:00:03 +0000
committerMartin Roth <martinroth@google.com>2022-02-10 21:16:49 +0000
commit20b9245d55c7a96790bbfe0ae5bfc2fbb5c74d4e (patch)
tree28ad2acac67d66dfa2ee3bc7b1ab49df2a8803a8 /tests/include/tests/test.h
parent74249b9af936a355e2301e6e89103c3a68b25296 (diff)
downloadcoreboot-20b9245d55c7a96790bbfe0ae5bfc2fbb5c74d4e.tar.gz
coreboot-20b9245d55c7a96790bbfe0ae5bfc2fbb5c74d4e.tar.bz2
coreboot-20b9245d55c7a96790bbfe0ae5bfc2fbb5c74d4e.zip
tests/include: Move EMPTY_WRAP() macro to tests/include/test.h
EMPTY_WRAP() might be useful for tests other than CBFS's ones. Move it to the main tests header file to make it easily accessible. Change-Id: Ic06c55912488681daf6d2c48cb0c879fa97ba4be Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60971 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'tests/include/tests/test.h')
-rw-r--r--tests/include/tests/test.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/include/tests/test.h b/tests/include/tests/test.h
index 523f8fafe967..45b542ed9f1f 100644
--- a/tests/include/tests/test.h
+++ b/tests/include/tests/test.h
@@ -14,6 +14,9 @@
#include <setjmp.h>
#include <cmocka.h>
+/* This macro basically does nothing but suppresses linter messages */
+#define EMPTY_WRAP(...) __VA_ARGS__
+
/*
* Set symbol value and make it global.
*/