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>
This commit is contained in:
parent
74249b9af9
commit
20b9245d55
|
@ -44,9 +44,6 @@ struct cbfs_test_file {
|
||||||
|
|
||||||
#define HASH_ATTR_SIZE (offsetof(struct cbfs_file_attr_hash, hash.raw) + VB2_SHA256_DIGEST_SIZE)
|
#define HASH_ATTR_SIZE (offsetof(struct cbfs_file_attr_hash, hash.raw) + VB2_SHA256_DIGEST_SIZE)
|
||||||
|
|
||||||
/* This macro basically does nothing but suppresses linter messages */
|
|
||||||
#define EMPTY_WRAP(...) __VA_ARGS__
|
|
||||||
|
|
||||||
#define TEST_DATA_1_FILENAME "test/data/1"
|
#define TEST_DATA_1_FILENAME "test/data/1"
|
||||||
#define TEST_DATA_1_SIZE sizeof((u8[]){TEST_DATA_1})
|
#define TEST_DATA_1_SIZE sizeof((u8[]){TEST_DATA_1})
|
||||||
#define TEST_DATA_1 EMPTY_WRAP( \
|
#define TEST_DATA_1 EMPTY_WRAP( \
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <cmocka.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.
|
* Set symbol value and make it global.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue