Skip to content

Commit e656972

Browse files
committed
Merge pull request Perl#17 in CB/perl5 from cbrunperl to ios_blead_test
* commit '65fa5ed3c8be29d387a6a5fa874e2f1268c66eeb': fixes cbrunperl.pm->ios.pm
2 parents 29eb366 + 65fa5ed commit e656972

File tree

27 files changed

+41
-39
lines changed

27 files changed

+41
-39
lines changed

MANIFEST

+1-1
Original file line numberDiff line numberDiff line change
@@ -4837,7 +4837,7 @@ lib/blib.t blib.pm test
48374837
lib/bytes.pm Pragma to enable byte operations
48384838
lib/bytes.t bytes.pm test
48394839
lib/bytes_heavy.pl Support routines for byte pragma
4840-
lib/cbrunperl.pm iOS library
4840+
lib/ios.pm iOS library
48414841
lib/charnames.pm Character names
48424842
lib/charnames.t See if character names work
48434843
lib/Class/Struct.pm Declare struct-like datatypes as Perl classes

Porting/Maintainers.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ package Maintainers;
14381438
lib/blib.{pm,t}
14391439
lib/bytes.{pm,t}
14401440
lib/bytes_heavy.pl
1441-
lib/cbrunperl.pm
1441+
lib/ios.pm
14421442
lib/charnames.{pm,t}
14431443
lib/dbm_filter_util.pl
14441444
lib/deprecate.pm

README.ios

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ where you can also run Instruments.
330330

331331
`runperl` functionality is currently provided through CamelBones. The
332332
runperl config hash used in t/harness is converted to JSON and passed as
333-
a simple scalar to the CBRunPerl XS method of CamelBones, which decodes
333+
a simple scalar to the ios XS method of CamelBones, which decodes
334334
the string into JSON, and executes and captures the output of the test.
335335
All perl interpreters are spawned as new threads, i.e. runperl. Perl
336336
never runs in the main thread.

cpan/Archive-Tar/t/08_ptargrep.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use File::Spec;
66
use FindBin '$Bin';
77
use Archive::Tar;
88
if ($^O =~ /darwin-ios/) {
9-
use cbrunperl;
9+
use ios;
1010
}
1111

1212
# filenames

cpan/AutoLoader/t/02AutoSplit.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use File::Find;
2929
my $Is_ios = $^O =~ /darwin-ios/;
3030
if ($Is_ios) {
3131
use Cwd qw(getcwd);
32-
use cbrunperl;
32+
use ios;
3333
}
3434

3535
my $Is_VMS = $^O eq 'VMS';

cpan/Filter-Util-Call/t/call.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Config;
33
BEGIN {
44
if ($^O =~ /darwin-ios/) {
55
use lib '../lib';
6-
require 'cbrunperl.pm';
6+
require 'ios.pm';
77
}
88
if ($ENV{PERL_CORE}) {
99
if ($Config{'extensions'} !~ m{\bFilter/Util/Call\b}) {

cpan/Filter-Util-Call/t/rt_54452-rebless.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use strict;
1717
use warnings;
1818

1919
if ($^O =~ /darwin-ios/) {
20-
use cbrunperl;
20+
use ios;
2121
}
2222

2323
use FindBin;

cpan/Pod-Usage/t/pod/headwithmarkup.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use Test::More tests => 1;
22

33
BEGIN {
44
if ($^O =~ /darwin-ios/) {
5-
require 'cbrunperl.pm';
5+
require 'ios.pm';
66
}
77
}
88

cpan/Pod-Usage/t/pod/selectheaders.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use Test::More tests => 2;
22

33
BEGIN {
44
if ($^O =~ /darwin-ios/) {
5-
require 'cbrunperl.pm';
5+
require 'ios.pm';
66
}
77
}
88

cpan/Pod-Usage/t/pod/selectsections.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use Test::More tests => 2;
22

33
BEGIN {
44
if ($^O =~ /darwin-ios/) {
5-
require 'cbrunperl.pm';
5+
require 'ios.pm';
66
}
77
}
88

cpan/Test-Harness/lib/TAP/Parser/Iterator/iOS.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use strict;
44
use warnings;
55
use Data::Dumper;
66
use Cwd qw/getcwd/;
7-
use cbrunperl;
7+
use ios;
88

99
use base 'TAP::Parser::Iterator';
1010

cpan/Test-Simple/t/Legacy/exit.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ my $Orig_Dir = cwd;
2525

2626
if ($^O =~ /darwin-ios/) {
2727
use Cwd qw/getcwd/;
28-
use cbrunperl;
28+
use ios;
2929
};
3030

3131
my $Perl = File::Spec->rel2abs($^X);

dist/Devel-SelfStubber/t/Devel-SelfStubber.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Devel::SelfStubber;
55
use File::Spec::Functions;
66

77
if ($^O =~ /darwin-ios/) {
8-
use cbrunperl;
8+
use ios;
99
}
1010

1111
my $runperl = $^X;

dist/IO/t/io_dup.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BEGIN {
1111
}
1212
if ($^O =~ /darwin-ios/) {
1313
use Cwd qw(getcwd);
14-
require 'cbrunperl.pm';
14+
require 'ios.pm';
1515
}
1616
}
1717

@@ -55,7 +55,7 @@ $stderr->fdopen($duperr,"w");
5555

5656
if ($^O eq 'MSWin32' || $^O eq 'NetWare' || $^O eq 'VMS') { print `type Io.dup` }
5757
elsif ($^O eq 'MacOS') { system 'Catenate Io.dup' }
58-
elsif ($^O =~ /darwin-ios/) { cbrunperl::cat(getcwd() . '/Io.dup') }
58+
elsif ($^O =~ /darwin-ios/) { ios::cat(getcwd() . '/Io.dup') }
5959
else { system 'cat Io.dup' }
6060
unlink 'Io.dup';
6161

dist/PathTools/t/rel2abs2rel.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use File::Spec;
77
use lib File::Spec->catdir('t', 'lib');
88

99
if ($^O =~ /darwin-ios/) {
10-
use cbrunperl;
10+
use ios;
1111
}
1212

1313
use Test::More (-x $^X

dist/Time-HiRes/t/ualarm.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BEGIN {
77
Test::More::plan(skip_all => "no ualarm()");
88
}
99
if ($^O =~ /darwin-ios/) {
10-
require 'cbrunperl.pm';
10+
require 'ios.pm';
1111
}
1212
}
1313

ext/B/t/showlex.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use warnings;
1515
use strict;
1616
use Config;
1717
if ($^O =~ /darwin-ios/) {
18-
use cbrunperl;
18+
use ios;
1919
}
2020
use B::Showlex ();
2121

ext/B/t/terse.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BEGIN {
88
exit 0;
99
}
1010
if ($^O =~ /darwin-ios/) {
11-
require 'cbrunperl.pm';
11+
require 'ios.pm';
1212
}
1313
}
1414

ext/Devel-Peek/t/Peek.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BEGIN {
1212
require($core ? '../../t/test.pl' : './t/test.pl');
1313
}
1414
if ($^O =~ /darwin-ios/) {
15-
require 'cbrunperl.pm';
15+
require 'ios.pm';
1616
}
1717
}
1818

ext/POSIX/t/posix.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BEGIN {
88
}
99
unshift @INC, "../../t";
1010
if ($^O =~ /darwin-ios/) {
11-
require 'cbrunperl.pm';
11+
require 'ios.pm';
1212
}
1313
require 'loc_tools.pl';
1414
}

ext/POSIX/t/wrappers.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
BEGIN {
44
if ($^O =~ /darwin-ios/) {
5-
require 'cbrunperl.pm';
5+
require 'ios.pm';
66
}
77
}
88

lib/h2xs.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use ExtUtils::Manifest;
2929
use Config;
3030

3131
if ($^O =~ /darwin-ios/) {
32-
use cbrunperl;
32+
use ios;
3333
}
3434

3535
# Don't want its diagnostics getting in the way of ours.

lib/cbrunperl.pm renamed to lib/ios.pm

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
package cbrunperl;
1+
package ios;
22

33
=head1 NAME
4-
cbrunperl.pm
4+
ios.pm
55
=cut
66

77
BEGIN {
8-
*CORE::GLOBAL::readpipe = sub {
9-
my ($code, $result);
10-
eval {
11-
($code, $result) = exec_cli(getcwd(), "@_")
8+
if ($^O =~ /darwin-ios/) {
9+
*CORE::GLOBAL::readpipe = sub {
10+
my ($code, $result);
11+
eval {
12+
($code, $result) = exec_cli(getcwd(), "@_")
13+
};
14+
$code = $code >> 8 if defined $code;
15+
$? = $code;
16+
return $result;
1217
};
13-
$code = $code >> 8 if defined $code;
14-
$? = $code;
15-
return $result;
16-
};
18+
}
1719
}
1820

1921
# auto-flush on socket
@@ -49,7 +51,7 @@ my $json = JSON::PP->new->convert_blessed(1);
4951

5052
sub check_error {
5153
my ($error) = @_;
52-
warn "CBRunPerl error: $error" if $error;
54+
warn "ios error: $error" if $error;
5355
}
5456

5557
sub yield {

t/base/term.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BEGIN {
44
chdir 't' if -d 't';
55
if ($^O =~ /darwin-ios/) {
66
use lib '../lib';
7-
require 'cbrunperl.pm';
7+
require 'ios.pm';
88
}
99
}
1010

t/op/magic.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BEGIN {
99
}
1010

1111
if ($^O =~ /darwin-ios/) {
12-
use cbrunperl;
12+
use ios;
1313
}
1414

1515
# Test that defined() returns true for magic variables created on the fly,

t/porting/perlfunc.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use Config;
2929
use TestInit qw(T A); # T is chdir to the top level, A makes paths absolute
3030

3131
if ($^O =~ /darwin-ios/) {
32-
use cbrunperl;
32+
use ios;
3333
}
3434

3535
if ( $Config{usecrosscompile} ) {

t/test.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
if ($^O =~ /darwin-ios/) {
4040
use Cwd qw/getcwd/;
41-
use cbrunperl;
42-
$cbrunperl::DEBUG = 0;
41+
use ios;
42+
$ios::DEBUG = 0;
4343
}
4444

4545
# Use this instead of print to avoid interference while testing globals.

0 commit comments

Comments
 (0)