# HG changeset patch # User Jan Vrany # Date 1414710114 0 # Node ID b3e47bab2de69c07c80a1101407771676a5126dc # Parent 530d98b90b13855aa5a666b80de6f35275e37ccc Added teardown to PetitCompilerTests to clean up a generated parser after tests. diff -r 530d98b90b13 -r b3e47bab2de6 compiler/tests/PetitCompilerTest.st --- a/compiler/tests/PetitCompilerTest.st Thu Oct 30 11:35:27 2014 +0000 +++ b/compiler/tests/PetitCompilerTest.st Thu Oct 30 23:01:54 2014 +0000 @@ -14,6 +14,19 @@ ^ context := PPCProfilingContext new ! ! +!PetitCompilerTest methodsFor:'running'! + +tearDown + | parserClass | + + parserClass := (Smalltalk at: #PPGeneratedParser). + parserClass notNil ifTrue:[ + parserClass removeFromSystem + ]. + + "Created: / 30-10-2014 / 22:56:19 / Jan Vrany " +! ! + !PetitCompilerTest methodsFor:'test support'! assert: p parse: whatever