Skip to content

Commit 3359391

Browse files
ppisartonycoz
authored andcommitted
lib/h2ph.t to test generated t/_h2ph_pre.ph instead of the system one
The lib/h2ph.t test executes a t/lib/h2ph.pht which requires '_h2ph_pre.ph'. This should find and exercise generated t/_h2ph_pre.ph file. However, it found a loaded _h2ph_pre.ph from system because the interpreter has the './' directory after the system paths in the @inc by default. This patch adds '-I./' to the runperl() invocation to prefer the _h2ph_pre.ph generated at build time. Signed-off-by: Petr Písař <[email protected]>
1 parent d3db151 commit 3359391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/h2ph.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $result = runperl( progfile => '_h2ph_pre.ph',
4848
stderr => 1 );
4949
like( $result, qr/syntax OK$/, "preamble compiles");
5050

51-
$result = runperl( switches => ["-w"],
51+
$result = runperl( switches => ['-I.', "-w"],
5252
stderr => 1,
5353
prog => <<'PROG' );
5454
$SIG{__WARN__} = sub { die $_[0] }; require q(lib/h2ph.pht);

0 commit comments

Comments
 (0)