Skip to content

Commit 51ddb25

Browse files
Adding missing long-term allocation requests to heap unit test.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
1 parent 593b1d7 commit 51ddb25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_heap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ main (int __attr_unused___ argc,
106106
size_t size = (size_t) rand () % test_threshold_block_size;
107107
ptrs[j] = (uint8_t*) mem_heap_alloc_block (size,
108108
(rand () % 2) ?
109-
MEM_HEAP_ALLOC_SHORT_TERM : MEM_HEAP_ALLOC_SHORT_TERM);
109+
MEM_HEAP_ALLOC_LONG_TERM : MEM_HEAP_ALLOC_SHORT_TERM);
110110
sizes[j] = size;
111111

112112
JERRY_ASSERT (size == 0 || ptrs[j] != NULL);

0 commit comments

Comments
 (0)