Skip to content

Commit 02915d0

Browse files
committed
Added mauke's test
1 parent a9cee21 commit 02915d0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

+12-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ else {
2626
plan tests => 7;
2727
}
2828

29-
ok $b, "created EU::CB object";
29+
{
30+
# GH #23146
31+
my $fake_cc = File::Spec->rel2abs(File::Spec->catfile(qw(some directory what doesnt exist), 'cc'));
32+
my $b = ExtUtils::CBuilder->new(
33+
quiet => $quiet,
34+
config => {
35+
cc => $fake_cc,
36+
},
37+
);
38+
39+
is $b->{config}{cxx}, $fake_cc, "did not search PATH for C++ compiler when given absolute path to C compiler";
40+
}
3041

3142
ok $b->have_cplusplus, "have_cplusplus";
3243

0 commit comments

Comments
 (0)