File: 0004-skip-test-workbuf.patch

package info (click to toggle)
vboot-utils 0~R63-10032.B-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 67,856 kB
  • sloc: ansic: 52,703; sh: 7,184; makefile: 1,179; cpp: 796; python: 129; pascal: 85
file content (19 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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");