diff options
-rw-r--r-- | source4/pidl/tests/Util.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/pidl/tests/Util.pm b/source4/pidl/tests/Util.pm index c85ef72d0a..cd2ba2a37e 100644 --- a/source4/pidl/tests/Util.pm +++ b/source4/pidl/tests/Util.pm @@ -25,7 +25,7 @@ sub test_samba4_ndr($$$) my ($name,$idl,$c) = @_; my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "<$name>"); - ok (defined($pidl), "($name) parse idl"); + ok(defined($pidl), "($name) parse idl"); my $header = Parse::Pidl::Samba4::Header::Parse($pidl); ok(defined($header), "($name) generate generic header"); my $pndr = Parse::Pidl::NDR::Parse($pidl); @@ -45,7 +45,14 @@ SKIP: { skip "no sane C compiler, skipping compilation", 3 if not $sanecc; - my $outfile = "test-$name"; + my $test_data_prefix = $ENV{TEST_DATA_PREFIX}; + + my $outfile; + if (defined($test_data_prefix)) { + $outfile = "$test_data_prefix/test-$name"; + } else { + $outfile = "test-$name"; + } #my $cflags = $ENV{CFLAGS}; my $cflags = "-Iinclude -Ilib -I."; |