From fc8707668a8a5b44d385c3633b28a3ef33b5825d Mon Sep 17 00:00:00 2001 From: Sophie Brun Date: Tue, 6 Feb 2018 15:29:11 +0000 Subject: [PATCH] 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 --- tests/vb2_common_tests.c | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- 2.30.2