Просмотр исходного кода

Merge branch 'feature/exception_emergency_pool_test_ci' into 'master'

[cxx]: Activate emergency exception memory pool test in CI

Closes IDF-1610

See merge request espressif/esp-idf!14143
Anton Maklakov 4 лет назад
Родитель
Сommit
be8ef09a59

+ 1 - 2
components/cxx/test/test_cxx.cpp

@@ -211,7 +211,7 @@ TEST_CASE("c++ std::exception child", "[cxx] [exceptions] [leaks=" LEAKS "]")
     printf("OK?\n");
 }
 
-TEST_CASE("c++ exceptions emergency pool", "[cxx] [exceptions] [ignore] [leaks=" LEAKS "]")
+TEST_CASE("c++ exceptions emergency pool", "[cxx] [exceptions] [leaks=" LEAKS "]")
 {
     void **p, **pprev = NULL;
     int thrown_value = 0;
@@ -241,7 +241,6 @@ TEST_CASE("c++ exceptions emergency pool", "[cxx] [exceptions] [ignore] [leaks="
     catch (int e)
     {
         thrown_value = e;
-        printf("Got exception %d\n", thrown_value);
     }
 #if CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE > 0
     // free all memory

+ 1 - 0
tools/unit-test-app/configs/cxx_exceptions

@@ -2,3 +2,4 @@
 CONFIG_IDF_TARGET="esp32"
 TEST_COMPONENTS=cxx
 CONFIG_COMPILER_CXX_EXCEPTIONS=y
+CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=1024

+ 1 - 0
tools/unit-test-app/configs/cxx_exceptions_c3

@@ -2,3 +2,4 @@
 CONFIG_IDF_TARGET="esp32c3"
 TEST_COMPONENTS=cxx
 CONFIG_COMPILER_CXX_EXCEPTIONS=y
+CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=1024

+ 1 - 0
tools/unit-test-app/configs/cxx_rtti

@@ -2,4 +2,5 @@
 CONFIG_IDF_TARGET="esp32"
 TEST_COMPONENTS=cxx
 CONFIG_COMPILER_CXX_EXCEPTIONS=y
+CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=1024
 CONFIG_COMPILER_CXX_RTTI=y

+ 1 - 0
tools/unit-test-app/configs/cxx_rtti_c3

@@ -2,4 +2,5 @@
 CONFIG_IDF_TARGET="esp32c3"
 TEST_COMPONENTS=cxx
 CONFIG_COMPILER_CXX_EXCEPTIONS=y
+CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=1024
 CONFIG_COMPILER_CXX_RTTI=y