diff --git a/t/02_parse_envfile.t b/t/02_parse_envfile.t index 5237c7a..6037d2b 100644 --- a/t/02_parse_envfile.t +++ b/t/02_parse_envfile.t @@ -89,7 +89,7 @@ ENV subtest 'file not found' => sub { eval { App::envfile->new->parse_envfile('foo.bar') }; - like $@, qr/No such file or directory/; + ok $@, 'throw error'; }; done_testing; diff --git a/t/03_run_with_env.t b/t/03_run_with_env.t index 58ae8fd..ac6f204 100644 --- a/t/03_run_with_env.t +++ b/t/03_run_with_env.t @@ -2,6 +2,8 @@ use strict; use warnings; use Test::More; +plan skip_all => 'MSWin32 not process' if $^O eq 'MSWin32'; + BEGIN { # capture exec() *CORE::GLOBAL::exec = sub {