projects
/
vboot-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f21ef8c
)
skip the workbuf test if VB2_WORKBUF_ALIGN different from 16
author
Sophie Brun
<sophie@freexian.com>
Fri, 2 Sep 2016 13:09:03 +0000
(14:09 +0100)
committer
Sophie Brun
<sophie@freexian.com>
Fri, 2 Sep 2016 13:09:03 +0000
(14:09 +0100)
Last-Update: 2015-12-03
Last-Update: 2015-12-03
Gbp-Pq: Name 0004-skip-test-workbuf.patch
tests/vb2_common_tests.c
patch
|
blob
|
history
diff --git
a/tests/vb2_common_tests.c
b/tests/vb2_common_tests.c
index c7e99769abadd6207db8ab03081c1050c009534e..b3bae28239438cadd2822840f15944efab21b7f8 100644
(file)
--- 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");