[BUG] Exception test failure: why?
Ned Konz
ned at bike-nomad.com
Tue Jul 25 05:06:59 UTC 2000
Thought I'd try the ExceptionTester that is in the image...
All the test succeed but this one:
e _ ExceptionTester new.
e simpleEnsureTestWithUparrow
The code that it's trying to run is:
ExceptionTester>>simpleEnsureTestWithUparrow
[self doSomething.
true ifTrue: [^nil].
self doSomethingElse]
ensure: [self doYetAnotherThing].
which should log:
doSomething
doYetAnotherThing
but instead raises an unhandled exception. Of course,
the exception handling inside of ensure: should catch this.
But unfortunately, it doesn't seem to.
Interestingly, if the code isn't in a method, but just in
the Workspace, ensure: works fine:
e _ ExceptionTester new.
[e doSomething.
true ifTrue: [^nil].
e doSomethingElse]
ensure: [e doYetAnotherThing].
This is with a 2.9alpha (update 2447) image, and the
latest Unix VM from Sourceforge.
Has anyone fixed this?
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|