Skip to content

Commit e0fffbe

Browse files
pablodelaratkanteck
authored andcommitted
erasure_code: disable unit tests temporarily for aarch64/ppc64le
Some aarch64 and ppc64le implementations of gf_vect_mul do not check for invalid sizes, so the unit test checking for negative return value from this function is disabled temporarily on these architectures. Signed-off-by: Pablo de Lara <[email protected]>
1 parent 7145c7f commit e0fffbe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

erasure_code/gf_vect_mul_test.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ int main(int argc, char *argv[])
171171
#endif
172172
}
173173

174+
#if !defined(aarch64) && !defined(ppc64le)
174175
// Test all unsupported sizes up to TEST_SIZE
175176
for (size = 0; size < TEST_SIZE; size++) {
176177
if (size % align != 0 && gf_vect_mul(size, gf_const_tbl, buff1, buff2) == 0) {
@@ -180,7 +181,10 @@ int main(int argc, char *argv[])
180181
goto exit;
181182
}
182183
}
183-
184+
#else
185+
printf
186+
("WARNING: Test disabled on ARM & PPC due to known issue https://github.com/intel/isa-l/issues/263\n");
187+
#endif
184188
printf(" done: Pass\n");
185189
fflush(0);
186190

0 commit comments

Comments
 (0)