From 615371900ed4165fefa5c03f7b6df34ac18bdefa Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 7 Jun 2021 16:56:08 +0900 Subject: [PATCH] tests: cpp: libcxx: Test with full and nano variants of newlib 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 --- tests/subsys/cpp/libcxx/prj.conf | 1 - tests/subsys/cpp/libcxx/testcase.yaml | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/subsys/cpp/libcxx/prj.conf b/tests/subsys/cpp/libcxx/prj.conf index 3798a4d49f612c..5bb9a62c4a0e8a 100644 --- a/tests/subsys/cpp/libcxx/prj.conf +++ b/tests/subsys/cpp/libcxx/prj.conf @@ -1,5 +1,4 @@ CONFIG_NEWLIB_LIBC=y -CONFIG_NEWLIB_LIBC_NANO=n CONFIG_CPLUSPLUS=y CONFIG_LIB_CPLUSPLUS=y CONFIG_STD_CPP17=y diff --git a/tests/subsys/cpp/libcxx/testcase.yaml b/tests/subsys/cpp/libcxx/testcase.yaml index 8c39420be938f0..a51228e7bc0977 100644 --- a/tests/subsys/cpp/libcxx/testcase.yaml +++ b/tests/subsys/cpp/libcxx/testcase.yaml @@ -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