Skip to content

Commit d4ed0d7

Browse files
galaknashif
authored andcommitted
tests: lib: mem_alloc: skip reallocarray test on arm clang
The arm clang toolchain provides its own libc and that libc doesn't implement reallocarray, so skip the test like we do on newlib. Signed-off-by: Kumar Gala <[email protected]>
1 parent 369ffb4 commit d4ed0d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/mem_alloc/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ ZTEST(c_lib_dynamic_memalloc, test_realloc)
242242
*
243243
* @see malloc(), reallocarray(), free()
244244
*/
245-
#ifdef CONFIG_NEWLIB_LIBC
245+
#if defined(CONFIG_NEWLIB_LIBC) || defined(CONFIG_ARMCLANG_STD_LIBC)
246246
ZTEST(c_lib_dynamic_memalloc, test_reallocarray)
247247
{
248-
/* reallocarray not implemented for newlib */
248+
/* reallocarray not implemented for newlib or arm libc */
249249
ztest_test_skip();
250250
}
251251
ZTEST(c_lib_dynamic_memalloc, test_calloc)

0 commit comments

Comments
 (0)