override exit() in test using MooseX::Getopt
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_script_help.t
index e2fc4a2..38eb5ea 100644 (file)
@@ -6,6 +6,9 @@ use Test::Fatal;
 use FindBin qw/$Bin/;
 use lib "$Bin/../lib";
 
+no warnings 'once';
+*CORE::GLOBAL::exit = sub {};
+
 {
     package TestHelpScript;
     use Moose;