summaryrefslogtreecommitdiff
path: root/tests/futility
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-09-04 15:42:53 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-23 16:28:19 +0000
commit3fb27b5f8711671f0d3a24415710fe67cbe0b889 (patch)
tree71729037effe03157494175a506317c1605e1d6c /tests/futility
parent1ff5597e282df81fb2cddcf4b7b47a01553a86fc (diff)
downloadvboot-3fb27b5f8711671f0d3a24415710fe67cbe0b889.tar.gz
vboot: remove BUILD_ASSERT macro
Use _Static_assert() instead. BUG=b:124141368 TEST=make clean && make runtests BRANCH=none Change-Id: I42a18442a8bff1ab346f8ba784e9e6fc0366de9a Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1786388 Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests/futility')
-rw-r--r--tests/futility/test_file_types.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/futility/test_file_types.c b/tests/futility/test_file_types.c
index 82f51486..3f88872c 100644
--- a/tests/futility/test_file_types.c
+++ b/tests/futility/test_file_types.c
@@ -39,7 +39,8 @@ static struct {
{FILE_TYPE_USBPD1, "tests/futility/data/zinger_mp_image.bin"},
{FILE_TYPE_RWSIG, }, /* need a test for this */
};
-BUILD_ASSERT(ARRAY_SIZE(test_case) == NUM_FILE_TYPES);
+_Static_assert(ARRAY_SIZE(test_case) == NUM_FILE_TYPES,
+ "Need a test case for each file type (total NUM_FILE_TYPES)");
int main(int argc, char *argv[])
{