The Trunk: Tests-nice.359.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tests-nice.359.mcz

commits-2
Nicolas Cellier uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-nice.359.mcz

==================== Summary ====================

Name: Tests-nice.359
Author: nice
Time: 28 October 2016, 9:26:33.240881 am
UUID: 61d2f0a4-ad88-9541-82fc-ce97c7939b23
Ancestors: Tests-nice.358

Fix yet another missing Environment clean-up.

Use Environment withName: rather than named:, because the later registers the Environment and prevent it to be garbageCollected.

=============== Diff against Tests-nice.358 ===============

Item was changed:
  ----- Method: MethodReferenceTest>>setUp (in category 'running') -----
  setUp
  | g p |
+ env := Environment withName: 'test'.
- env := Environment named: 'test'.
  g := self createClass: #Griffle.
  p := self createClass: #Plonk.
  g compile: 'foo ^ 1'.
  g organization classify: #foo under: #accessing.
  g class compile: 'classFoo ^ 1'.
  g compile: 'bar ^ 1'.
  p compile: 'foo ^ 2'.
  self createClass: #Unused.!

Item was added:
+ ----- Method: MethodReferenceTest>>tearDown (in category 'running') -----
+ tearDown
+ env destroy.
+ env := nil!