From 0e93ffc8e372c6e14e78ba59eaefe6bcd32d0907 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 9 Mar 2023 23:44:07 +0000 Subject: [PATCH] samples: hash_map: Add newlib filter to samples.yaml Not all toolchains support newlib so tests that require newlib need to have a filter to we don't try and build those tests on those testcases. Add the following to samples.yaml to handle the issue: filter: TOOLCHAIN_HAS_NEWLIB == 1 Signed-off-by: Kumar Gala --- samples/basic/hash_map/sample.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/basic/hash_map/sample.yaml b/samples/basic/hash_map/sample.yaml index 12c3ede3c1..0ba16fe1fc 100644 --- a/samples/basic/hash_map/sample.yaml +++ b/samples/basic/hash_map/sample.yaml @@ -31,16 +31,19 @@ tests: - CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y # Newlib libraries.hash_map.newlib.separate_chaining.djb2: + filter: TOOLCHAIN_HAS_NEWLIB == 1 extra_configs: - CONFIG_NEWLIB_LIBC=y - CONFIG_SYS_HASH_MAP_CHOICE_SC=y - CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y libraries.hash_map.newlib.open_addressing.djb2: + filter: TOOLCHAIN_HAS_NEWLIB == 1 extra_configs: - CONFIG_NEWLIB_LIBC=y - CONFIG_SYS_HASH_MAP_CHOICE_OA_LP=y - CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y libraries.hash_map.newlib.cxx_unordered_map.djb2: + filter: TOOLCHAIN_HAS_NEWLIB == 1 extra_configs: - CONFIG_NEWLIB_LIBC=y - CONFIG_SYS_HASH_MAP_CHOICE_CXX=y