Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Test world isn't removed nor a message is given if unit test crashes

Open BrettDong opened this issue 9 years ago • 2 comments

At the end of tests/test_main.cpp, a message is given if the test world isn't removed.

auto world_name = world_generator->active_world->world_name;
    if( result == 0 || dont_save ) {
        g->delete_world(world_name, true);
    } else {
        printf("Test world \"%s\" left for inspection.\n", world_name.c_str());
    }

But if the unit test received a SIGSEGV in one of the tests and exits, nothing is printed on the screen.

BrettDong avatar Nov 01 '16 09:11 BrettDong

In 273ef69 you get a backtrace, the name of the signal, and a clean Catch2 report.

alef avatar Dec 01 '24 14:12 alef

That's not the right commit @alef.

akrieger avatar Dec 01 '24 15:12 akrieger