summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-17 19:51:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-17 19:51:01 +0000
commitf51e7ad5e98fec2428ec465e9ce55643d93c2291 (patch)
tree8b48af10748f54d0bf611acce728fdcb022257e3
parentddc50ff60892aa3213d30cd8b5926285e2ad06bf (diff)
downloadperl-f51e7ad5e98fec2428ec465e9ce55643d93c2291.tar.gz
Small tweaks to get the test running (fix @INC and
do not overwrite the table.utf8 and table.rnd). p4raw-id: //depot/perl@14733
-rw-r--r--ext/Encode/t/JP.t11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/Encode/t/JP.t b/ext/Encode/t/JP.t
index e9799dab11..fef229b635 100644
--- a/ext/Encode/t/JP.t
+++ b/ext/Encode/t/JP.t
@@ -1,6 +1,6 @@
BEGIN {
-# chdir 't' if -d 't';
-# @INC = (-d '../../lib' ? '../lib';
+ chdir 't' if -d 't';
+ @INC = '../lib';
require Config; import Config;
if ($Config{'extensions'} !~ /\bEncode\b/) {
print "1..0 # Skip: Encode was not built\n";
@@ -23,9 +23,9 @@ ok($enc->isa('Encode::XS'));
is($enc->name,'euc-jp');
my $dir = dirname(__FILE__);
my $euc = File::Spec->catfile($dir,"table.euc");
-my $utf = File::Spec->catfile($dir,"table.utf8");
+my $utf = File::Spec->catfile($dir,"$$.utf8");
my $ref = File::Spec->catfile($dir,"table.ref");
-my $rnd = File::Spec->catfile($dir,"table.rnd");
+my $rnd = File::Spec->catfile($dir,"$$.rnd");
print "# Basic decode test\n";
open($src,"<",$euc) || die "Cannot open $euc:$!";
ok(defined($src) && fileno($src));
@@ -92,6 +92,5 @@ SKIP:
is($enc->name,'euc-jp');
END {
-# unlink($utf,$rnd);
-
+ 1 while unlink($utf,$rnd);
}