Эх сурвалжийг харах

heap: add light poisoning configuration to the tests.

Relates to IDF-2653
Omar Chebib 5 жил өмнө
parent
commit
c4dc3acba9

+ 2 - 2
components/heap/test/test_allocator_timings.c

@@ -9,8 +9,8 @@
 #include <string.h>
 #include <test_utils.h>
 
-//This test only makes sense with poisoning disabled
-#ifndef CONFIG_HEAP_POISONING_COMPREHENSIVE
+//This test only makes sense with poisoning disabled (light or comprehensive)
+#if !defined(CONFIG_HEAP_POISONING_COMPREHENSIVE) && !defined(CONFIG_HEAP_POISONING_LIGHT)
 
 #define NUM_POINTERS 128
 #define ITERATIONS 10000

+ 1 - 1
tools/ci/config/target-test.yml

@@ -573,7 +573,7 @@ UT_046:
 
 UT_C3:
   extends: .unit_test_c3_template
-  parallel: 27
+  parallel: 28
   tags:
     - ESP32C3_IDF
     - UT_T1_1

+ 4 - 0
tools/unit-test-app/configs/heap_light_poison

@@ -0,0 +1,4 @@
+CONFIG_IDF_TARGET="esp32"
+TEST_COMPONENTS=heap
+CONFIG_HEAP_POISONING_COMPREHENSIVE=n
+CONFIG_HEAP_POISONING_LIGHT=y

+ 4 - 0
tools/unit-test-app/configs/heap_light_poison_c3

@@ -0,0 +1,4 @@
+CONFIG_IDF_TARGET="esp32c3"
+TEST_COMPONENTS=heap
+CONFIG_HEAP_POISONING_COMPREHENSIVE=n
+CONFIG_HEAP_POISONING_LIGHT=y