• Nikolai Kosjar's avatar
    CppEditor/CppTools: Don't continue in test function on failure · 0bd59178
    Nikolai Kosjar authored
    QVERIFY/QCOMPARE are meant to be called in the test function so that on
    failure they just can "return" and thus skip subsequent code. Since we
    use reusable test code in the test functions (the *TestCase classes), we
    need to ensure that on failure no further test code is executed.
    
    This mostly inlines the run function of the test classes into the
    constructor.
    
    Change-Id: I320ee032bdde0174ddfe3fdf3f9e18e19abf1d7f
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
    0bd59178
followsymbol_switchmethoddecldef_test.cpp 45.8 KB