Permalink
Browse files

fixed test. use File::Spec->catfile for generating path

  • Loading branch information...
kazeburo committed Apr 8, 2013
1 parent 353c2c0 commit 1b0a347c6bde2ba3fc540bb329809be9d592a8a6
Showing with 2 additions and 1 deletion.
  1. +2 −1 t/01_basic.t
View
@@ -6,6 +6,7 @@ use Test::Module::Build::Pluggable;
use Module::Build::Pluggable::CPANfile;
use version;
use Capture::Tiny ':all';
+use File::Spec;
require Module::Build;
my $support_test_requries =
@@ -47,7 +48,7 @@ MANIFEST
my $stderr = capture_stderr { $test->run_build_pl() };
like $stderr, qr/not support 'suggests'/;
-my $meta = $test->read_file('_build/prereqs');
+my $meta = $test->read_file(File::Spec->catfile('_build','prereqs'));
ok($meta);
my $prereqs = eval $meta;

0 comments on commit 1b0a347

Please sign in to comment.