summaryrefslogtreecommitdiffstats
path: root/js/src/gdb/tests/test-ExecutableAllocator.py
blob: b790e2d340cfd8a969ff61a359005369b13e4bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Tests for ExecutableAllocator pretty-printing

assert_subprinter_registered('SpiderMonkey', 'JS::GCCellPtr')

run_fragment('ExecutableAllocator.empty')

assert_pretty('execAlloc', 'ExecutableAllocator([])')

run_fragment('ExecutableAllocator.onepool')

reExecPool = 'ExecutablePool [a-f0-9]{8,}-[a-f0-9]{8,}'
assert_regexp_pretty('pool', reExecPool)
assert_regexp_pretty('execAlloc', 'ExecutableAllocator\(\[' +reExecPool+ '\]\)')

run_fragment('ExecutableAllocator.twopools')

assert_regexp_pretty('execAlloc', 'ExecutableAllocator\(\[' + reExecPool + ', ' + reExecPool + '\]\)')