Updates:
        Cc: laurent.laffont

Comment #4 on issue 3463 by [email protected]: [Failing Test] HelpBrowserTest.testOpen
http://code.google.com/p/pharo/issues/detail?id=3463

OK, to give more context:
- the test HelpBrowserTest.testOpen just checks if the help browser
  can be opened without any problem (by checking if an exception occurs)
- unfortunately there is an exception thrown

Why:
- one of the included help books is Laurents "SmalltalkSyntaxTutorial"
- this class is instantiated and during intialization it sends #prepareDebuggerExample - this method compiles some code which ends up in the method CompiledMethod>>putSource:fromParseNode:inFile:withPreamble:

- this method signals the exception:

    InMidstOfFileinNotification signal ifFalse: [file flush].

- this can be reproduced with the following code:

[Object compile: 'foo ^3+4' classified: 'test'] on: Exception do: [:ex | ex inspect]

This also gives the InMidstOfFileinNotification

Dont know why this InMidstOfFileinNotification

Possible Solutions:
- handle the notification in #prepareDebuggerExample (while compiling the code) - maybe we should also change #testOpen to just check for errors instead of exception while opening:

        self shouldnt: block raise: Error

  (this would avoid notifications which are also exceptions)




Reply via email to