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 <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2024-01-02 11:54:06 +00:00 committed by Tomasz Kantecki
parent 7145c7f8b4
commit e0fffbe48b

View File

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