From: Sophie Brun Date: Fri, 2 Sep 2016 13:09:03 +0000 (+0100) 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^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0b4ae3dd29b38fc22acc9e81138bd7b9040e6d1d;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");