CTest disables windows dumps
Hello all,
In a Windows system that has enabled the collection of user-mode dumps CTest disables the collection of user-mode dumps. This is detrimental to running tests because dumps are generally speaking very useful.
The mechanisms by which CTest disables the creation of dumps is job object's JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION and SetErrorMode. SetErrorMode's flags of SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX
will get propagated to child processes.
This issue is opened to request a command line switch that enables the collection of user-mode dumps on Windows when a test ran with CTest decides to crash. At this moment I am suspecting that both mechanisms (SetErrorMode and job objects) need to be altered in order to achieve that.
Thank you.
Best Regards, Andrei Porumb