From: Sophie Brun Date: Tue, 6 Feb 2018 15:29:11 +0000 (+0000) Subject: skip the workbuf test if VB2_WORKBUF_ALIGN different from 16 X-Git-Tag: archive/raspbian/0_R99-14469.B-2+rpi1~1^2^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc8707668a8a5b44d385c3633b28a3ef33b5825d;p=vboot-utils.git skip the workbuf test if VB2_WORKBUF_ALIGN different from 16 Last-Update: 2015-12-03 Last-Update: 2015-12-03 Gbp-Pq: Name 0004-skip-test-workbuf.patch --- diff --git a/tests/vb2_common_tests.c b/tests/vb2_common_tests.c index c7e9976..b3bae28 100644 --- a/tests/vb2_common_tests.c +++ b/tests/vb2_common_tests.c @@ -70,6 +70,11 @@ static void test_workbuf(void) /* NOTE: There are several magic numbers below which assume that * VB2_WORKBUF_ALIGN == 16 */ + /* Skip the tests if VB2_WORKBUF_ALIGN != 16 */ + if (VB2_WORKBUF_ALIGN != 16) { + return; + } + /* Init */ vb2_workbuf_init(&wb, p0, 64); TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned");