Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
run parrot in current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 4, 2009
1 parent 0304594 commit e57bace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/Parrot/Test/Xml.pm
Expand Up @@ -44,11 +44,12 @@ foreach my $func ( keys %language_test_map ) {

my $params = $options{params} || q{};

my $parrot = File::Spec->catfile( $self->{relpath}, $self->{parrot} );
# flatten filenames (don't use directories)
my $lang_fn = File::Spec->rel2abs( Parrot::Test::per_test( '.xml', $count ) );
my $out_fn = File::Spec->rel2abs( Parrot::Test::per_test( '.out', $count ) );
my @test_prog = (
"$self->{parrot} languages/xml/xml.pbc $lang_fn",
"$parrot xml.pbc $lang_fn",
);

# This does not create byte code, but lua code
Expand All @@ -58,7 +59,6 @@ foreach my $func ( keys %language_test_map ) {
# STDERR is written into same output file
my $exit_code = Parrot::Test::run_command(
\@test_prog,
CD => $self->{relpath},
STDOUT => $out_fn,
STDERR => $out_fn,
);
Expand Down

0 comments on commit e57bace

Please sign in to comment.