From 3a92024b52ad6b7198c87141cd727518cb47a9b5 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 29 Jun 2020 10:26:43 +0800 Subject: [PATCH] cxxtest: Should check CONFIG_CXX_EXCEPTION instead of CONFIG_UCLIBCXX_EXCEPTION because user may use libcxx which just define CONFIG_LIBCXX_EXCEPTION Signed-off-by: Xiang Xiao Change-Id: I67e7e93cd994e7ad895e93f859f78e038a7a10cb --- testing/cxxtest/cxxtest_main.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/cxxtest/cxxtest_main.cxx b/testing/cxxtest/cxxtest_main.cxx index 45b7f2c10..3e0db8ae2 100644 --- a/testing/cxxtest/cxxtest_main.cxx +++ b/testing/cxxtest/cxxtest_main.cxx @@ -219,7 +219,7 @@ static void test_rtti(void) // Name: test_exception //***************************************************************************/ -#ifdef CONFIG_UCLIBCXX_EXCEPTION +#ifdef CONFIG_CXX_EXCEPTION static void test_exception(void) { std::cout << "test exception==========================" << std::endl; @@ -258,7 +258,7 @@ extern "C" test_iostream(); test_stl(); test_rtti(); -#ifdef CONFIG_UCLIBCXX_EXCEPTION +#ifdef CONFIG_CXX_EXCEPTION test_exception(); #endif