[asperl] various changes to get asperl working under Borland
[p5sagit/p5-mst-13.2.git] / t / lib / safe2.t
old mode 100644 (file)
new mode 100755 (executable)
index 61c6c8f..c9e3880
@@ -8,6 +8,8 @@ BEGIN {
         print "1..0\n";
         exit 0;
     }
+  # test 30 rather naughtily expects English error messages
+  $ENV{'LC_ALL'} = 'C';
 }
 
 # Tests Todo:
@@ -62,7 +64,8 @@ $glob = "ok 11\n";
 
 sub sayok { print "ok @_\n" }
 
-$cpt->share(qw($foo %bar @baz *glob sayok $"));
+$cpt->share(qw($foo %bar @baz *glob sayok));
+$cpt->share('$"') unless $Config{archname} =~ /-thread$/;
 
 $cpt->reval(q{
     package other;
@@ -119,7 +122,10 @@ print $@ =~ /foo bar/ ? "ok 29\n" : "not ok 29\n";
   
 my $t = 30;
 $cpt->rdo('/non/existant/file.name');
-print +(($! =~ /No such file/ || $! =~ /file specification syntax error/) ?
+print +(($! =~ /No such file/ || $! =~ /file specification syntax error/) ||
+      $! =~ /A file or directory in the path name does not exist/ ||
+      $! =~ /Invalid argument/ ||
+      $! =~ /Device not configured/ ?
       "ok $t\n" : "not ok $t # $!\n"); $t++;
 print 1 ? "ok $t\n" : "not ok $t\n#$@/$!\n"; $t++;