develooper Front page | perl.vmsperl | Postings from December 2001

[PATCH] vms/test.com -- skip tty tests when not interactive

From:
Craig A. Berry
Date:
December 7, 2001 21:28
Subject:
[PATCH] vms/test.com -- skip tty tests when not interactive
Message ID:
a05101004b83754903506@[172.16.52.1]
This goes in after Dr. Schwern's recent MACROectomy.  It avoids test 
failures when running the test suite in a batch job.

--- vms/test.com;-1     Fri Dec  7 23:20:53 2001
+++ vms/test.com        Fri Dec  7 23:22:58 2001
@@ -53,6 +53,7 @@
 $   testdir = "Directory/NoHead/NoTrail/Column=1"
 $   PerlShr_filespec = f$parse("Sys$Disk:[-]''dbg'PerlShr''exe'")
 $   Define 'dbg'Perlshr 'PerlShr_filespec'
+$   if f$mode() .nes. "INTERACTIVE" then Define PERL_SKIP_TTY_TEST 1
 $   MCR Sys$Disk:[]Perl. "-I[-.lib]" - "''p3'" "''p4'" "''p5'" "''p6'"
 $   Deck/Dollar=$$END-OF-TEST$$
 #

-- 
________________________________________
Craig A. Berry
mailto:craigberry@mac.com

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About