Skip to content

Commit 702e757

Browse files
committed
t/lib/GH_15109 - rename to t/lib/caller
I want to use these modules in other tests, so changing the name makes sense.
1 parent 81f4fdd commit 702e757

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

MANIFEST

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5684,6 +5684,10 @@ t/io/tell.t See if file seeking works
56845684
t/io/through.t See if pipe passes data intact
56855685
t/io/utf8.t See if file seeking works
56865686
t/japh/abigail.t Obscure tests
5687+
t/lib/caller/Apack.pm test Module for caller.t
5688+
t/lib/caller/Bpack.pm test Module for caller.t
5689+
t/lib/caller/Cpack.pm test Module for caller.t
5690+
t/lib/caller/Foo.pm test Module for caller.t
56875691
t/lib/CannotParse.pm For test case in op/require_errors.t
56885692
t/lib/charnames/alias Tests of "use charnames" with aliases.
56895693
t/lib/Cname.pm Test charnames in regexes (op/pat.t)
@@ -5722,10 +5726,6 @@ t/lib/feature/nonesuch Tests for enabling/disabling nonexistent feature
57225726
t/lib/feature/removed Tests for enabling/disabling removed feature
57235727
t/lib/feature/say Tests for enabling/disabling say feature
57245728
t/lib/feature/switch Tests for enabling/disabling switch feature
5725-
t/lib/GH_15109/Apack.pm test Module for caller.t
5726-
t/lib/GH_15109/Bpack.pm test Module for caller.t
5727-
t/lib/GH_15109/Cpack.pm test Module for caller.t
5728-
t/lib/GH_15109/Foo.pm test Module for caller.t
57295729
t/lib/h2ph.h Test header file for h2ph
57305730
t/lib/h2ph.pht Generated output from h2ph.h by h2ph, for comparison
57315731
t/lib/locale/latin1 Part of locale.t in Latin 1

t/lib/GH_15109/Apack.pm

Lines changed: 0 additions & 4 deletions
This file was deleted.

t/lib/GH_15109/Bpack.pm

Lines changed: 0 additions & 4 deletions
This file was deleted.

t/lib/caller/Apack.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# for use by caller.t for GH #15109 and other tests
2+
package Apack;
3+
use Bpack;
4+
1;

t/lib/caller/Bpack.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# for use by caller.t for GH #15109 and other tests
2+
package Bpack;
3+
use Cpack;
4+
1;

t/lib/GH_15109/Cpack.pm renamed to t/lib/caller/Cpack.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# for use by caller.t for GH #15109
1+
# for use by caller.t for GH #15109 and other tests
22
package Cpack;
33

44

File renamed without changes.

t/op/caller.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,14 @@ do './op/caller.pl' or die $@;
339339
# See that callers within a nested series of 'use's gets the right
340340
# filenames.
341341
{
342-
local @INC = 'lib/GH_15109/';
342+
local @INC = 'lib/caller/';
343343
# Apack use's Bpack which use's Cpack which populates @Cpack::caller
344344
# with the file:N of all the callers
345345
eval 'use Apack; 1';
346346
is($@, "", "GH #15109 - eval");
347347
is (scalar(@Cpack::callers), 10, "GH #15109 - callers count");
348-
like($Cpack::callers[$_], qr{GH_15109/Bpack.pm:3}, "GH #15109 level $_") for 0..2;
349-
like($Cpack::callers[$_], qr{GH_15109/Apack.pm:3}, "GH #15109 level $_") for 3..5;
348+
like($Cpack::callers[$_], qr{caller/Bpack.pm:3}, "GH #15109 level $_") for 0..2;
349+
like($Cpack::callers[$_], qr{caller/Apack.pm:3}, "GH #15109 level $_") for 3..5;
350350
like($Cpack::callers[$_], qr{\(eval \d+\):1}, "GH #15109 level $_") for 6..8;
351351
like($Cpack::callers[$_], qr{caller\.t}, "GH #15109 level $_") for 9;
352352

0 commit comments

Comments
 (0)