aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/vboot-utils-skip-test-workbuf.patch
blob: 9618c76f83b4f0e1054baf0aa03b04ff7bf5de1e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This patch was copied from Debian.

Description: skip the workbuf test if VB2_WORKBUF_ALIGN different from 16 
Author: Sophie Brun <sophie@freexian.com>
Last-Update: 2015-12-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- 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");
mmit/gnu/packages/django.scm?id=d5f56e9089aa743e12f54163a879c17eab48380e'>gnu: Add python-djangorestframework....Christopher Baines 2018-03-06gnu: python-django: Update to 1.11.11 [fixes CVE-2018-7536 and CVE-2018-7537]....Marius Bakke 2018-02-24gnu: python-django: Update to 1.11.10....Jane Baines 2018-02-01gnu: python-django: Use the test-only tzdata package for tests....Marius Bakke 2018-02-01gnu: pootle: Don't require python-pytest-warnings....Marius Bakke 2018-01-23Merge branch 'master' into core-updatesMark H Weaver 2018-01-21gnu: Add python-django-tagging....Ricardo Wurmus