summaryrefslogtreecommitdiff
path: root/t/op/misc.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-01-09 22:45:40 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-09 22:45:40 +0000
commitc9f931b868379618cf79b68035f0c4b7583e1cac (patch)
tree245abcc6e684a948a02e9c3d053c9b72f6600b9c /t/op/misc.t
parentd27127a1d94bb72eb9421f343c9c3c2c5ca60b5a (diff)
downloadperl-c9f931b868379618cf79b68035f0c4b7583e1cac.tar.gz
Allow the locale test needing POSIX and the taint test
needing IPC::SysV to run under 'minitest' (basically, bail out if loading the extension fails) p4raw-id: //depot/perl@8384
Diffstat (limited to 't/op/misc.t')
-rwxr-xr-xt/op/misc.t9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/op/misc.t b/t/op/misc.t
index 63ef2b2573..59045bcc1f 100755
--- a/t/op/misc.t
+++ b/t/op/misc.t
@@ -570,11 +570,14 @@ aba\ba\b
# the bug depends on in the internal state of the locale
# settings and pragma/locale messes up that state pretty badly.
# We need a "fresh run".
+BEGIN {
+ eval { require POSIX };
+ if ($@) {
+ exit(0); # running minitest?
+ }
+}
use Config;
my $have_setlocale = $Config{d_setlocale} eq 'define';
-eval {
- require POSIX;
-};
$have_setlocale = 0 if $@;
# Visual C's CRT goes silly on strings of the form "en_US.ISO8859-1"
# and mingw32 uses said silly CRT