Tests depend on locale
authorJan D <jan.djarv@mbox200.swipnet.se>
Mon, 19 May 1997 03:15:37 +0000 (15:15 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Wed, 11 Jun 1997 00:00:00 +0000 (12:00 +1200)
This is (sort of) documented in INSTALL.  But you are right,
the tests should force the LC_ALL to be 'C'.  Note: LANG is
not enough, and neither is POSIX as readily available as C.
Here are the patches:

p5p-msgid: 199705191230.PAA21070@alpha.hut.fi
Signed-off-by: Jarkko Hietaniemi <jhi@iki.fi>
t/lib/safe2.t
t/op/mkdir.t

index feaab1695637a2d19edc2ea5638846890980cb83..40c50980580c9c029e596a52484eccf53bc230f8 100755 (executable)
@@ -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:
index 5a6dfe5f5c16a0eadfc2adb408c4d81efc069c5f..d47570358d170f16c1d6ee3bb37657cfa2ac7a89 100755 (executable)
@@ -6,6 +6,9 @@ print "1..7\n";
 
 $^O eq 'MSWin32' ? `del /s /q blurfl 2>&1` : `rm -rf blurfl`;
 
+# tests 3 and 7 rather naughtily expect English error messages
+$ENV{'LC_ALL'} = 'C';
+
 print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
 print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
 print ($! =~ /exist/ ? "ok 3\n" : "not ok 3\n");