Add unit test for GC problem

db4
Slava Pestov 2008-12-09 16:45:02 -06:00
parent d9011a3a6e
commit b5e8b14722
1 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,16 @@
USING: generic kernel kernel.private math memory prettyprint io
sequences tools.test words namespaces layouts classes
classes.builtin arrays quotations ;
classes.builtin arrays quotations io.launcher system ;
IN: memory.tests
! LOL
[ ] [
vm
"-generations=2"
"-e=USING: memory io prettyprint system ; input-stream gc . 0 exit"
3array try-process
] unit-test
[ [ ] instances ] must-infer
! Code GC wasn't kicking in when needed