perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/devel/writing_tests writing_tests.pod
Date Wed, 19 Sep 2001 02:06:20 GMT
stas        01/09/18 19:06:20

  Modified:    src/devel/writing_tests writing_tests.pod
  Log:
  document a new function have_perl
  
  Revision  Changes    Path
  1.6       +10 -0     modperl-docs/src/devel/writing_tests/writing_tests.pod
  
  Index: writing_tests.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/devel/writing_tests/writing_tests.pod,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- writing_tests.pod	2001/09/18 15:52:56	1.5
  +++ writing_tests.pod	2001/09/19 02:06:20	1.6
  @@ -697,6 +697,16 @@
   list. Returns FALSE if at least one of the modules is not found,
   returns true otherwise.
   
  +=item * have_perl()
  +
  +have_perl('foo') checks whether the value of C<$Config{foo}> or
  +C<$Config{usefoo}> is equal to 'define'. So one can tell:
  +
  +  plan tests => 2, have_perl 'ithreads';
  +
  +and if the Perl wasn't compiled with C<-Dusethreads> the condition
  +will be false and the test will be skipped.
  +
   =item * have_lwp()
   
   META: to be written
  
  
  

Mime
View raw message