Test::Smoke::Util::Win32ErrorMode - Utility function to switch off the error-popup for the current process.
This patch was provided in RT-39138. The code has changed quite a bit since then (9 years ago). But it still looked good and sane, so we decided to give it a place in the code.
This calls kernel32::SetErrorMode with the flags: SEM_FAILCRITICALERRORS and SEM_NOGPFAULTERRORBOX to prevent popups during crashes.
kernel32::SetErrorMode
SEM_FAILCRITICALERRORS
SEM_NOGPFAULTERRORBOX
It also calls Win32::Process::Open()->SetPriorityClass() as a way to renice() the process.
Win32::Process::Open()->SetPriorityClass()
renice()
(c) MMVIII Jan Dubois <jdb@cpan.org> original patch
(c) MMXVII Abe Timmerman <abeltje@cpan.org> integration into Test::Smoke.
To install Test::Smoke, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Smoke
CPAN shell
perl -MCPAN -e shell install Test::Smoke
For more information on module installation, please visit the detailed CPAN module installation guide.