From 51ddb25344208e8b64681c8967734865bd3e6fd2 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Tue, 5 May 2015 19:01:48 +0300 Subject: [PATCH] Adding missing long-term allocation requests to heap unit test. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com --- tests/unit/test_heap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_heap.cpp b/tests/unit/test_heap.cpp index b775e85870..ca6903cac9 100644 --- a/tests/unit/test_heap.cpp +++ b/tests/unit/test_heap.cpp @@ -106,7 +106,7 @@ main (int __attr_unused___ argc, size_t size = (size_t) rand () % test_threshold_block_size; ptrs[j] = (uint8_t*) mem_heap_alloc_block (size, (rand () % 2) ? - MEM_HEAP_ALLOC_SHORT_TERM : MEM_HEAP_ALLOC_SHORT_TERM); + MEM_HEAP_ALLOC_LONG_TERM : MEM_HEAP_ALLOC_SHORT_TERM); sizes[j] = size; JERRY_ASSERT (size == 0 || ptrs[j] != NULL);