[squeak-dev] How to destroy your work by running a test
Bert Freudenberg
bert at freudenbergs.de
Sat Mar 27 11:38:51 UTC 2010
Begin forwarded message:
> From: laurent laffont <laurent.laffont at gmail.com>
> Date: 26. März 2010 22:11:44 MEZ
> To: An open mailing list to discuss any topics related to an open-source Smalltalk <pharo-project at lists.gforge.inria.fr>
> Subject: [Pharo-project] Squeak VM+FT2Plugin, all Pharo 1.0 rc3 tests green
> Reply-To: Pharo-project at lists.gforge.inria.fr
>
> Fun story: if you don't have SecurityPlugin, LocaleTest>>testFontFullName deletes your image :)
> testFontFullName
> "self debug: #testFontFullName"
> | env dir |
> env := (Locale isoLanguage: 'ja') languageEnvironment.
> dir := FileDirectory on: SecurityManager default untrustedUserDirectory.
> [dir recursiveDelete] <-------------- Cool !!
> on: Error
> do: [:e | e].
> env fontFullName.
> self assert: dir exists
>
>
> Cheers,
>
> Laurent Laffont
... I've just removed the test from trunk, plus fixed the method it tested.
- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100327/b5f3b2f2/attachment.htm
More information about the Squeak-dev
mailing list
|