summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-02 12:49:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-02 12:49:13 +0000
commit7aae9294ce1130ca3d4d220d2871f86359f3f256 (patch)
treeddfb4ff5017677b9197b16280a59c0f85f2f8715 /t
parent6e909404a2579c635b9578c0b6ce5416a5ed7b0b (diff)
downloadperl-7aae9294ce1130ca3d4d220d2871f86359f3f256.tar.gz
minitest wasn't working. (The $^X /miniperl/ test in
io/crlf.t didn't work in Tru64, $^X was "./perl", used the same 'eval q/use .../' trick everywhere.) p4raw-id: //depot/perl@18622
Diffstat (limited to 't')
-rw-r--r--t/io/crlf.t4
-rw-r--r--t/uni/tr_7jis.t5
-rw-r--r--t/uni/tr_eucjp.t5
-rw-r--r--t/uni/tr_sjis.t5
-rw-r--r--t/uni/tr_utf8.t5
5 files changed, 23 insertions, 1 deletions
diff --git a/t/io/crlf.t b/t/io/crlf.t
index 96f7ed7833..5f879f2681 100644
--- a/t/io/crlf.t
+++ b/t/io/crlf.t
@@ -32,7 +32,9 @@ if (find PerlIO::Layer 'perlio') {
SKIP:
{
- if ($^X =~ /\bminiperl\b/) { skip(q/miniperl can't load PerlIO layers/) }
+ eval 'use PerlIO::scalar';
+ skip(q/miniperl cannnot load PerlIO::scalar/)
+ if $@ =~ /dynamic loading not available/;
my $fcontents = join "", map {"$_\r\n"} "a".."zzz";
open my $fh, "<:crlf", \$fcontents;
local $/ = "xxx";
diff --git a/t/uni/tr_7jis.t b/t/uni/tr_7jis.t
index 360ce1c382..894ff4c87e 100644
--- a/t/uni/tr_7jis.t
+++ b/t/uni/tr_7jis.t
@@ -23,6 +23,11 @@ BEGIN {
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}
diff --git a/t/uni/tr_eucjp.t b/t/uni/tr_eucjp.t
index e13acab0ed..6958f465a8 100644
--- a/t/uni/tr_eucjp.t
+++ b/t/uni/tr_eucjp.t
@@ -22,6 +22,11 @@ BEGIN {
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}
diff --git a/t/uni/tr_sjis.t b/t/uni/tr_sjis.t
index 0f4a72b055..732eb1ab0b 100644
--- a/t/uni/tr_sjis.t
+++ b/t/uni/tr_sjis.t
@@ -22,6 +22,11 @@ BEGIN {
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}
diff --git a/t/uni/tr_utf8.t b/t/uni/tr_utf8.t
index 12f3516fc2..e623909549 100644
--- a/t/uni/tr_utf8.t
+++ b/t/uni/tr_utf8.t
@@ -23,6 +23,11 @@ BEGIN {
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}