From b1115fbcfc570453db6d982a691a579c60b24a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Fri, 20 Sep 2019 10:07:32 +0200 Subject: [PATCH] Disable test-mem-stats.c unittest if system allocator is used (#3133) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/unit-core/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit-core/CMakeLists.txt b/tests/unit-core/CMakeLists.txt index 63ddc4601..5652b3633 100644 --- a/tests/unit-core/CMakeLists.txt +++ b/tests/unit-core/CMakeLists.txt @@ -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)