mabdi / small-amp

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

Custom error handlers interrupts the amplification #97

Open mabdi opened 4 years ago

mabdi commented 4 years ago

The trait TTaskExecutor (traits or classes like it) opens custom exceptionHandler.

executeTask: aTaskExecution
    [ self noteBusy. aTaskExecution value. self noteFree ]
        on: Error
        do: [ :error | self exceptionHandler handleException: error ]

The tests using these classes may interrupted and never be finished. (TKTLocalProcessTaskRunner uses TTaskExecutor)

testCacheSizeFor_amp_A78
        | cache requestedSize tmp_yxDSiRuEgR1 tmp_Wh1LQxSblB2 tmp_P3cDMPRpKV3 tmp_CQXiNqyAMj4 tmp_Gka6xX3Oxw5 tmp_MfFvl0EPML6 tmp_W3fLy0ggoO7 tmp_pxmJXKfM6v8 |
        cache := BlLocalImageCache new.
        tmp_yxDSiRuEgR1 := cache taskitRunner: TKTLocalProcessTaskRunner new.
        tmp_P3cDMPRpKV3 := cache defaultImageSizes.
        tmp_Wh1LQxSblB2 := tmp_P3cDMPRpKV3 second.
        requestedSize := tmp_Wh1LQxSblB2 - 1.
        tmp_CQXiNqyAMj4 := cache defaultImageSizes.
        requestedSize := tmp_CQXiNqyAMj4 second.
        tmp_MfFvl0EPML6 := cache defaultImageSizes.
        cache initHousekeeping.
        tmp_Gka6xX3Oxw5 := tmp_MfFvl0EPML6 third.
        requestedSize := tmp_Gka6xX3Oxw5 + 1.
        tmp_pxmJXKfM6v8 := cache defaultImageSizes.
        tmp_W3fLy0ggoO7 := tmp_pxmJXKfM6v8 last.
        requestedSize := tmp_W3fLy0ggoO7 + 1