This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] t/op/crypt.t
authorMichael G. Schwern <schwern@pobox.com>
Tue, 18 Sep 2001 18:47:14 +0000 (14:47 -0400)
committerAbhijit Menon-Sen <ams@wiw.org>
Tue, 18 Sep 2001 22:11:25 +0000 (22:11 +0000)
Message-Id: <20010918184714.I585@blackrider>

p4raw-id: //depot/perl@12076

t/op/crypt.t

index 2619338..457be52 100644 (file)
@@ -1,6 +1,23 @@
-use Test::More tests => 2;
+#!./perl -Tw
+
+BEGIN {
+    chdir 't' if -d 't';
+    @INC = ('../lib');
+}
+
 use Config;
 
+BEGIN {
+    require Test::More;
+
+    if( !$Config{d_crypt} ) {
+        Test::More->import('skip_all');
+    }
+    else {
+        Test::More->import(tests => 2);
+    }
+}
+
 # Can't assume too much about the string returned by crypt(),
 # and about how many bytes of the encrypted (really, hashed)
 # string matter.