-
-
30 Mar 2022 09:25:47 UTC
- Distribution: Test-Smoke
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (24)
- Testers (237 / 5 / 0)
- Kwalitee
Bus factor: 2- 65.73% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (358.2KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- CGI::Util
- Capture::Tiny
- File::Spec
- HTTP::Tiny
- JSON::XS
- POSIX
- System::Info
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Test::Smoke::Util::Win32ErrorMode - Utility function to switch off the error-popup for the current process.
DESCRIPTION
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.
lower_error_settings()
This calls
kernel32::SetErrorMode
with the flags:SEM_FAILCRITICALERRORS
andSEM_NOGPFAULTERRORBOX
to prevent popups during crashes.It also calls
Win32::Process::Open()->SetPriorityClass()
as a way torenice()
the process.COPYRIGHT
(c) MMVIII Jan Dubois <jdb@cpan.org> original patch
(c) MMXVII Abe Timmerman <abeltje@cpan.org> integration into Test::Smoke.
Module Install Instructions
To install Test::Smoke, copy and paste the appropriate command in to your terminal.
cpanm Test::Smoke
perl -MCPAN -e shell install Test::Smoke
For more information on module installation, please visit the detailed CPAN module installation guide.