mabdi / small-amp

Test Amplification for Pharo
MIT License
5 stars 4 forks source link

Possible image crash: PhLImageTest #38

Closed mabdi closed 4 years ago

mabdi commented 4 years ago

execution stopped in testCanSerializeAndDeserializeImageMetadata_amp_L3

mabdi commented 4 years ago

code:

testCanSerializeAndDeserializeImageMetadata_amp_L3
    | deserializedImage tmp_QPevCfMZNQ1 tmp_Ev28JGrkr92 tmp_SLcZhKQfpm3 |
    tmp_QPevCfMZNQ1 := image description: 'An mage for testing purpose'.
    tmp_Ev28JGrkr92 := image computeArchitecture.
    tmp_SLcZhKQfpm3 := image
        originTemplate:
            (PhLRemoteTemplate
                name: 'Foo test template'
                url: 'https://foo.bar.org/abc/foo.zip' asZnUrl).
    deserializedImage := STON fromString: image stonString
mabdi commented 4 years ago

not confirmed.
tested on mac:

| imageFileRef fs image deserializedImage tmp_QPevCfMZNQ1 tmp_Ev28JGrkr92 tmp_SLcZhKQfpm3 |
fs := FileSystem memory root.
    imageFileRef := fs / 'foo.image'.
    imageFileRef binaryWriteStreamDo: [ :stream | (ZnEndianessReadWriteStream on: stream ) nextLittleEndianNumber: 4 put: 68021 ].
    image := PhLImage location: imageFileRef.
    tmp_QPevCfMZNQ1 := image description: 'An mage for testing purpose'.
    tmp_Ev28JGrkr92 := image computeArchitecture.
    tmp_SLcZhKQfpm3 := image
        originTemplate:
            (PhLRemoteTemplate
                name: 'Foo test template'
                url: 'https://foo.bar.org/abc/foo.zip' asZnUrl).
    deserializedImage := STON fromString: image stonString
mabdi commented 4 years ago

Assertions amplification error. This is not a crash.

During the run, a graphical open dialog prompts. Most probably it blocks the executions. the new test method is not created.

there's no reason to crash yet.