From: Michael G. Schwern Date: Tue, 18 Sep 2001 18:47:14 +0000 (-0400) Subject: Re: [PATCH] t/op/crypt.t X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7b48dbf9833dd0173f81b50164ac3dfbf08c9c41;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] t/op/crypt.t Message-Id: <20010918184714.I585@blackrider> p4raw-id: //depot/perl@12076 --- diff --git a/t/op/crypt.t b/t/op/crypt.t index 2619338..457be52 100644 --- a/t/op/crypt.t +++ b/t/op/crypt.t @@ -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.