2 # Copyright (C) 2010, Parrot Foundation.
7 t/op/gc-active-buffers.t - Test that buffers are freed as soon as possible
11 % prove t/op/gc-active-buffers.t
15 Tests that unused buffers (strings) are freed in the first GC run. See
16 TT1603 - http://trac.parrot.org/parrot/ticket/1603
20 .include 'interpinfo.pasm'
23 .include 'test_more.pir'
28 $I0 = interpinfo .INTERPINFO_ACTIVE_BUFFERS
33 unless count goto done
35 # original test form TT1603
36 $P0 = new 'CodeString'
40 # another way to trigger the problem
42 $S2 = substr $S1, 0, 1
49 $I1 = interpinfo .INTERPINFO_ACTIVE_BUFFERS
53 $S0 .= " additional active buffers (which should be <= 100)"
62 # vim: expandtab shiftwidth=4 ft=pir: