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 <xiaoxiang@xiaomi.com> Change-Id: I67e7e93cd994e7ad895e93f859f78e038a7a10cb
This commit is contained in:
parent
dbfa8d5f13
commit
3a92024b52
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user