Change 11975 by jhi@alpha on 2001/09/10 12:42:24

        Skip the crypt test if no crypt.

Affected files ...

... //depot/perl/t/op/crypt.t#2 edit

Differences ...

==== //depot/perl/t/op/crypt.t#2 (text) ====
Index: perl/t/op/crypt.t
--- perl/t/op/crypt.t.~1~       Mon Sep 10 06:45:05 2001
+++ perl/t/op/crypt.t   Mon Sep 10 06:45:05 2001
@@ -1,4 +1,5 @@
 use Test::More tests => 2;
+use Config;
 
 # Can't assume too much about the string returned by crypt(),
 # and about how many bytes of the encrypted (really, hashed)
@@ -10,6 +11,10 @@
 # bets, given alternative encryption/hashing schemes like MD5,
 # C2 (or higher) security schemes, and non-UNIX platforms.
 
-ok(substr(crypt("ab", "cd"), 2) ne substr(crypt("ab", "ce"), 2), "salt");
+SKIP: {
+    skip "crypt unimplemented", 2, unless $Config{d_crypt};
+    
+    ok(substr(crypt("ab", "cd"), 2) ne substr(crypt("ab", "ce"), 2), "salt");
 
-ok(crypt("HI", "HO") eq crypt(v4040.4041, "HO"), "Unicode");
+    ok(crypt("HI", "HO") eq crypt(v4040.4041, "HO"), "Unicode");
+}
End of Patch.

Reply via email to