Skip to content

Commit bc8ebc5

Browse files
committed
ExtUtils-CBuilder: fix test failure when CXX env var is set
The test is checking how searching for a C++ compiler behaves, so ignoring an external CXX environment variable is appropriate.
1 parent 0c32a9f commit bc8ebc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dist/ExtUtils-CBuilder/t/03-cplusplus.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ if ($^O eq 'VMS') {
6161
}
6262

6363
{
64+
local $ENV{CXX};
65+
delete $ENV{CXX};
6466
# GH #23146
6567
my $fake_cc = File::Spec->rel2abs(File::Spec->catfile(qw(some directory what doesnt exist), 'cc'));
6668
my $cb = ExtUtils::CBuilder->new(

0 commit comments

Comments
 (0)