Disable test-mem-stats.c unittest if system allocator is used (#3133)
If system allocator is used jerry_heap_stats_t.size is always 0 and we can't get detailed heap statistics. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
committed by
Dániel Bátyai
parent
dc44b8b933
commit
b1115fbcfc
@@ -26,6 +26,11 @@ endif()
|
||||
# Unit tests main modules
|
||||
file(GLOB SOURCE_UNIT_TEST_MAIN_MODULES *.c)
|
||||
|
||||
# jerry_heap_stats_t.size == 0 if system allocator is used.
|
||||
if(JERRY_SYSTEM_ALLOCATOR)
|
||||
list(REMOVE_ITEM SOURCE_UNIT_TEST_MAIN_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/test-mem-stats.c)
|
||||
endif()
|
||||
|
||||
# Unit tests declaration
|
||||
add_custom_target(unittests-core)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user