[BUG] unit test fails: MAToManyScalarRelationDescriptionTest>>#testCopyReference

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

[BUG] unit test fails: MAToManyScalarRelationDescriptionTest>>#testCopyReference

Matthias Berth-2
Hello,

I was trying to write a test for Magritte's MAStringReader. Before
starting on that, I ran all tests in Magritte-Tests. I can provide
more detailed info about loaded package versions upon request. (is
there an easy way to dump a list of all currently loaded packages from
monticello?)

Cheers

Matthias

-----

24 March 2007 8:14:23 pm

VM: Win32 - a SmalltalkImage
Image: Squeak3.9 [latest update: #7067]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Untrusted Dir C:\Program Files\Squeak\

MAToManyScalarRelationDescriptionTest(TestCase)>>signalFailure:
        Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
        Arguments and temporary variables:
                aString: 'Assertion failed'
        Receiver's instance variables:
                testSelector: #testCopyReference
                description: a MAToManyScalarRelationDescription label: '' comment: nil

MAToManyScalarRelationDescriptionTest(TestCase)>>assert:
        Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
        Arguments and temporary variables:
                aBooleanOrBlock: false
        Receiver's instance variables:
                testSelector: #testCopyReference
                description: a MAToManyScalarRelationDescription label: '' comment: nil

MAToManyScalarRelationDescriptionTest(MAReferenceDescriptionTest)>>testCopyReference
        Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
        Arguments and temporary variables:

        Receiver's instance variables:
                testSelector: #testCopyReference
                description: a MAToManyScalarRelationDescription label: '' comment: nil

MAToManyScalarRelationDescriptionTest(TestCase)>>performTest
        Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
        Arguments and temporary variables:

        Receiver's instance variables:
                testSelector: #testCopyReference
                description: a MAToManyScalarRelationDescription label: '' comment: nil


--- The full stack ---
MAToManyScalarRelationDescriptionTest(TestCase)>>signalFailure:
MAToManyScalarRelationDescriptionTest(TestCase)>>assert:
MAToManyScalarRelationDescriptionTest(MAReferenceDescriptionTest)>>testCopyReference
MAToManyScalarRelationDescriptionTest(TestCase)>>performTest
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[] in MAToManyScalarRelationDescriptionTest(TestCase)>>runCase {[self
setUp.  self performTest]}
BlockContext>>ensure:
MAToManyScalarRelationDescriptionTest(TestCase)>>runCase
[] in MAToManyScalarRelationDescriptionTest(TestCase)>>debug {[(self
class selector: testSelector) runCase]}
BlockContext>>ensure:
MAToManyScalarRelationDescriptionTest(TestCase)>>debug
[] in TestRunner>>debugSuite: {[:each | each debug]}
OrderedCollection>>do:
[] in TestRunner>>basicRunSuite:do: {[aTestSuite name isEmptyOrNil
ifTrue: [aTestSuite tests do: aBlock]   ifFa...]}
BlockContext>>ensure:
TestRunner>>basicRunSuite:do:
TestRunner>>debugSuite:
TestRunner>>debug:
TestRunner>>failedSelected:
PluggableListMorphPlus(PluggableListMorph)>>changeModelSelection:
PluggableListMorphPlus(PluggableListMorph)>>mouseUp:
PluggableListMorphPlus(Morph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
PluggableListMorphPlus(Morph)>>handleEvent:
PluggableListMorphPlus(Morph)>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.
ActiveEvent := anEvent.  result := focusHolder     han...]}
[] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
BlockContext>>on:do:
PasteUpMorph>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h
processEvents.  capturingGesture := capturingGest...]}
Array(SequenceableCollection)>>do:
WorldState>>handsDo:
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
PasteUpMorph>>doOneCycle
[] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor
yield.  false] whileFalse.  nil]}
[] in BlockContext>>newProcess {[self value.  Processor terminateActive]}
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [BUG] unit test fails: MAToManyScalarRelationDescriptionTest>>#testCopyReference

Lukas Renggli
> I was trying to write a test for Magritte's MAStringReader. Before
> starting on that, I ran all tests in Magritte-Tests. I can provide
> more detailed info about loaded package versions upon request. (is
> there an easy way to dump a list of all currently loaded packages from
> monticello?)

This is a well known bug. I think this is nothing to worry about.

Philippe can you fix (or disable) it, it was introduced with your
introduction of MAToManyScalarRelationDescription?

Cheers,
Lukas


>
> Cheers
>
> Matthias
>
> -----
>
> 24 March 2007 8:14:23 pm
>
> VM: Win32 - a SmalltalkImage
> Image: Squeak3.9 [latest update: #7067]
>
> SecurityManager state:
> Restricted: false
> FileAccess: true
> SocketAccess: true
> Untrusted Dir C:\Program Files\Squeak\
>
> MAToManyScalarRelationDescriptionTest(TestCase)>>signalFailure:
>         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
>         Arguments and temporary variables:
>                 aString:        'Assertion failed'
>         Receiver's instance variables:
>                 testSelector:   #testCopyReference
>                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
>
> MAToManyScalarRelationDescriptionTest(TestCase)>>assert:
>         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
>         Arguments and temporary variables:
>                 aBooleanOrBlock:        false
>         Receiver's instance variables:
>                 testSelector:   #testCopyReference
>                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
>
> MAToManyScalarRelationDescriptionTest(MAReferenceDescriptionTest)>>testCopyReference
>         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
>         Arguments and temporary variables:
>
>         Receiver's instance variables:
>                 testSelector:   #testCopyReference
>                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
>
> MAToManyScalarRelationDescriptionTest(TestCase)>>performTest
>         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
>         Arguments and temporary variables:
>
>         Receiver's instance variables:
>                 testSelector:   #testCopyReference
>                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
>
>
> --- The full stack ---
> MAToManyScalarRelationDescriptionTest(TestCase)>>signalFailure:
> MAToManyScalarRelationDescriptionTest(TestCase)>>assert:
> MAToManyScalarRelationDescriptionTest(MAReferenceDescriptionTest)>>testCopyReference
> MAToManyScalarRelationDescriptionTest(TestCase)>>performTest
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> [] in MAToManyScalarRelationDescriptionTest(TestCase)>>runCase {[self
> setUp.  self performTest]}
> BlockContext>>ensure:
> MAToManyScalarRelationDescriptionTest(TestCase)>>runCase
> [] in MAToManyScalarRelationDescriptionTest(TestCase)>>debug {[(self
> class selector: testSelector) runCase]}
> BlockContext>>ensure:
> MAToManyScalarRelationDescriptionTest(TestCase)>>debug
> [] in TestRunner>>debugSuite: {[:each | each debug]}
> OrderedCollection>>do:
> [] in TestRunner>>basicRunSuite:do: {[aTestSuite name isEmptyOrNil
> ifTrue: [aTestSuite tests do: aBlock]   ifFa...]}
> BlockContext>>ensure:
> TestRunner>>basicRunSuite:do:
> TestRunner>>debugSuite:
> TestRunner>>debug:
> TestRunner>>failedSelected:
> PluggableListMorphPlus(PluggableListMorph)>>changeModelSelection:
> PluggableListMorphPlus(PluggableListMorph)>>mouseUp:
> PluggableListMorphPlus(Morph)>>handleMouseUp:
> MouseButtonEvent>>sentTo:
> PluggableListMorphPlus(Morph)>>handleEvent:
> PluggableListMorphPlus(Morph)>>handleFocusEvent:
> [] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.
> ActiveEvent := anEvent.  result := focusHolder     han...]}
> [] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
> BlockContext>>on:do:
> PasteUpMorph>>becomeActiveDuring:
> HandMorph>>sendFocusEvent:to:clear:
> HandMorph>>sendEvent:focus:clear:
> HandMorph>>sendMouseEvent:
> HandMorph>>handleEvent:
> HandMorph>>processEvents
> [] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h
> processEvents.  capturingGesture := capturingGest...]}
> Array(SequenceableCollection)>>do:
> WorldState>>handsDo:
> WorldState>>doOneCycleNowFor:
> WorldState>>doOneCycleFor:
> PasteUpMorph>>doOneCycle
> [] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor
> yield.  false] whileFalse.  nil]}
> [] in BlockContext>>newProcess {[self value.  Processor terminateActive]}
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [BUG] unit test fails: MAToManyScalarRelationDescriptionTest>>#testCopyReference

Philippe Marschall
2007/3/24, Lukas Renggli <[hidden email]>:

> > I was trying to write a test for Magritte's MAStringReader. Before
> > starting on that, I ran all tests in Magritte-Tests. I can provide
> > more detailed info about loaded package versions upon request. (is
> > there an easy way to dump a list of all currently loaded packages from
> > monticello?)
>
> This is a well known bug. I think this is nothing to worry about.
>
> Philippe can you fix (or disable) it, it was introduced with your
> introduction of MAToManyScalarRelationDescription?

No, it was not. It used to work initially, when the functionality was
added. It was broken later by changes introduced by someone else than
me. The cool thing about this bug is that it is a Heisenbug. It does
not appear if you run the code in the debugger.

for example it worked in:
Magritte-Model-lr.235

Cheers
Philippe

> Cheers,
> Lukas
>
>
> >
> > Cheers
> >
> > Matthias
> >
> > -----
> >
> > 24 March 2007 8:14:23 pm
> >
> > VM: Win32 - a SmalltalkImage
> > Image: Squeak3.9 [latest update: #7067]
> >
> > SecurityManager state:
> > Restricted: false
> > FileAccess: true
> > SocketAccess: true
> > Untrusted Dir C:\Program Files\Squeak\
> >
> > MAToManyScalarRelationDescriptionTest(TestCase)>>signalFailure:
> >         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
> >         Arguments and temporary variables:
> >                 aString:        'Assertion failed'
> >         Receiver's instance variables:
> >                 testSelector:   #testCopyReference
> >                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
> >
> > MAToManyScalarRelationDescriptionTest(TestCase)>>assert:
> >         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
> >         Arguments and temporary variables:
> >                 aBooleanOrBlock:        false
> >         Receiver's instance variables:
> >                 testSelector:   #testCopyReference
> >                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
> >
> > MAToManyScalarRelationDescriptionTest(MAReferenceDescriptionTest)>>testCopyReference
> >         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
> >         Arguments and temporary variables:
> >
> >         Receiver's instance variables:
> >                 testSelector:   #testCopyReference
> >                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
> >
> > MAToManyScalarRelationDescriptionTest(TestCase)>>performTest
> >         Receiver: MAToManyScalarRelationDescriptionTest>>#testCopyReference
> >         Arguments and temporary variables:
> >
> >         Receiver's instance variables:
> >                 testSelector:   #testCopyReference
> >                 description:    a MAToManyScalarRelationDescription label: '' comment: nil
> >
> >
> > --- The full stack ---
> > MAToManyScalarRelationDescriptionTest(TestCase)>>signalFailure:
> > MAToManyScalarRelationDescriptionTest(TestCase)>>assert:
> > MAToManyScalarRelationDescriptionTest(MAReferenceDescriptionTest)>>testCopyReference
> > MAToManyScalarRelationDescriptionTest(TestCase)>>performTest
> >  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > [] in MAToManyScalarRelationDescriptionTest(TestCase)>>runCase {[self
> > setUp.  self performTest]}
> > BlockContext>>ensure:
> > MAToManyScalarRelationDescriptionTest(TestCase)>>runCase
> > [] in MAToManyScalarRelationDescriptionTest(TestCase)>>debug {[(self
> > class selector: testSelector) runCase]}
> > BlockContext>>ensure:
> > MAToManyScalarRelationDescriptionTest(TestCase)>>debug
> > [] in TestRunner>>debugSuite: {[:each | each debug]}
> > OrderedCollection>>do:
> > [] in TestRunner>>basicRunSuite:do: {[aTestSuite name isEmptyOrNil
> > ifTrue: [aTestSuite tests do: aBlock]   ifFa...]}
> > BlockContext>>ensure:
> > TestRunner>>basicRunSuite:do:
> > TestRunner>>debugSuite:
> > TestRunner>>debug:
> > TestRunner>>failedSelected:
> > PluggableListMorphPlus(PluggableListMorph)>>changeModelSelection:
> > PluggableListMorphPlus(PluggableListMorph)>>mouseUp:
> > PluggableListMorphPlus(Morph)>>handleMouseUp:
> > MouseButtonEvent>>sentTo:
> > PluggableListMorphPlus(Morph)>>handleEvent:
> > PluggableListMorphPlus(Morph)>>handleFocusEvent:
> > [] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self.
> > ActiveEvent := anEvent.  result := focusHolder     han...]}
> > [] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]}
> > BlockContext>>on:do:
> > PasteUpMorph>>becomeActiveDuring:
> > HandMorph>>sendFocusEvent:to:clear:
> > HandMorph>>sendEvent:focus:clear:
> > HandMorph>>sendMouseEvent:
> > HandMorph>>handleEvent:
> > HandMorph>>processEvents
> > [] in WorldState>>doOneCycleNowFor: {[:h |  ActiveHand := h.  h
> > processEvents.  capturingGesture := capturingGest...]}
> > Array(SequenceableCollection)>>do:
> > WorldState>>handsDo:
> > WorldState>>doOneCycleNowFor:
> > WorldState>>doOneCycleFor:
> > PasteUpMorph>>doOneCycle
> > [] in Project class>>spawnNewProcess {[[World doOneCycle.  Processor
> > yield.  false] whileFalse.  nil]}
> > [] in BlockContext>>newProcess {[self value.  Processor terminateActive]}
> > _______________________________________________
> > Seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [BUG] unit test fails: MAToManyScalarRelationDescriptionTest>>#testCopyReference

Lukas Renggli
> > This is a well known bug. I think this is nothing to worry about.
> >
> > Philippe can you fix (or disable) it, it was introduced with your
> > introduction of MAToManyScalarRelationDescription?
>
> No, it was not. It used to work initially, when the functionality was
> added. It was broken later by changes introduced by someone else than
> me. The cool thing about this bug is that it is a Heisenbug. It does
> not appear if you run the code in the debugger.
>
> for example it worked in:
> Magritte-Model-lr.235

I recall that we discussed this. I will try to fix or disable it then
myself. Maybe we could even improve the test runner ...

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside