Skip to content

Commit

Permalink
tests: cpp: libcxx: Test with full and nano variants of newlib
Browse files Browse the repository at this point in the history
In order to increase test coverage, this commit updates the libcxx test
to run with both full and nano variants of the newlib.

Note that C++ exception handling feature is only enabled for the newlib
full variant because the nano variant does not support C++ exception
handling.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio authored and galak committed Jun 8, 2021
1 parent 518dd32 commit 6153719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/subsys/cpp/libcxx/prj.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n
CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_STD_CPP17=y
Expand Down
9 changes: 6 additions & 3 deletions tests/subsys/cpp/libcxx/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ common:
integration_platforms:
- mps2_an385
tests:
cpp.libcxx:
cpp.libcxx.newlib:
toolchain_exclude: xcc
min_flash: 54
tags: cpp
cpp.libcxx.exceptions:
extra_configs:
- CONFIG_NEWLIB_LIBC_NANO=n
- CONFIG_EXCEPTIONS=y
cpp.libcxx.newlib_nano:
toolchain_exclude: xcc
min_flash: 54
tags: cpp
timeout: 30
extra_configs:
- CONFIG_EXCEPTIONS=y
- CONFIG_NEWLIB_LIBC_NANO=y

0 comments on commit 6153719

Please sign in to comment.