skip the workbuf test if VB2_WORKBUF_ALIGN different from 16
authorSophie Brun <sophie@freexian.com>
Tue, 6 Feb 2018 15:29:11 +0000 (15:29 +0000)
committerRaphaël Hertzog <hertzog@debian.org>
Tue, 6 Feb 2018 15:29:11 +0000 (15:29 +0000)
Last-Update: 2015-12-03

Last-Update: 2015-12-03
Gbp-Pq: Name 0004-skip-test-workbuf.patch

tests/vb2_common_tests.c

index c7e99769abadd6207db8ab03081c1050c009534e..b3bae28239438cadd2822840f15944efab21b7f8 100644 (file)
@@ -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");