Moin, I stumbled over a slight problem with Test::More: skip_all is an import feature, but not a subroutine. So you can do either:
#################################################################### use Test::More; my $tests; BEGIN { $tests = 2; plan tests => $tests; } SKIP: { skip ( 'reason', $tests) if ...; # tests here } #################################################################### which is ugly (needs $test or copy&paste number of tests, and an extra SKIP block), or do some trickery with: #################################################################### Test::More; if (...) { Test::More->import( skip_all => 'reason'); } Test::More::plan ( 123 ); # tests here #################################################################### This is a bit better, but fumbly and I am not sure it will always work, especially the bit with calling import etc. Idially I would like to write: #################################################################### use Test::More; plan tests => 123; skip_all( 'reason' ) if ...; # tests here #################################################################### Did I miss something or is this simple not yet possible? Best wishes, Tels -- Signed on Wed May 31 17:48:11 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "helft den armen vögeln" -- gegen kleinschreibung -- Signed on Wed May 31 17:53:43 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. Firefox: What are you trying to tell me, that I can block pop-ups? Morpheus: I'm trying to tell you that when you're ready, you won't have to. -- Skyshadow (508) on 2004-11-30 at /.
pgpg8i7cEYqtg.pgp
Description: PGP signature