Skip to content

Commit 0e93ffc

Browse files
galakcarlescufi
authored andcommitted
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 <[email protected]>
1 parent 0eb7391 commit 0e93ffc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/basic/hash_map/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,19 @@ tests:
3131
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
3232
# Newlib
3333
libraries.hash_map.newlib.separate_chaining.djb2:
34+
filter: TOOLCHAIN_HAS_NEWLIB == 1
3435
extra_configs:
3536
- CONFIG_NEWLIB_LIBC=y
3637
- CONFIG_SYS_HASH_MAP_CHOICE_SC=y
3738
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
3839
libraries.hash_map.newlib.open_addressing.djb2:
40+
filter: TOOLCHAIN_HAS_NEWLIB == 1
3941
extra_configs:
4042
- CONFIG_NEWLIB_LIBC=y
4143
- CONFIG_SYS_HASH_MAP_CHOICE_OA_LP=y
4244
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
4345
libraries.hash_map.newlib.cxx_unordered_map.djb2:
46+
filter: TOOLCHAIN_HAS_NEWLIB == 1
4447
extra_configs:
4548
- CONFIG_NEWLIB_LIBC=y
4649
- CONFIG_SYS_HASH_MAP_CHOICE_CXX=y

0 commit comments

Comments
 (0)