[comp.lang.perl] TEST does nothing on SGI 4D

rob@pact.nl (Rob Kurver) (11/14/90)

I just installed perl (v3.0, upto PL40) on our Silicon Graphics 4D
Workstation.  It compiles OK, but when I run TEST, it doesn't run a
single test!  It just comes back and tells me that no tests were run
for some reason.  When I try to run them by hand many of them appear
to work just fine.

Has anybody else seen this behaviour?  I figured I'd ask the net before
starting to hack at the code.

Any pointers, suggestions etc. appreciated.

Thanks.

Rob

--
     PACT                Rob Kurver
    Foulkeslaan 87      rob@pact.nl
   2625 RB Delft
  The Netherlands     +31 15 616864

kgallagh@digi.lonestar.org (Kevin Gallagher) (11/15/90)

In article <rob.658531354@dutncp8> rob@pact.nl (Rob Kurver) writes:
>I just installed perl (v3.0, upto PL40) ...
>It compiles OK, but when I run TEST, it doesn't run a
>single test!  

I had the same problem.  If I recall, there was a patch to TEST in patch
38-40, but the hunk failed.  So, I had to apply it by hand.  It added support
for new test scripts.  Anyway, after applying the patch by hand, TEST would
not run.  The problem was the symbols ARGV and ARGX.  They are both supposed
to be the ARGV.  If you have both ARGV and ARGX in your TEST, your problem is
solved.  Just replace the string 'ARGX' with 'ARGV' and TEST should run fine.

Somehow my TEST must have had only ARGX in it, which explains why the patch
must have failed.  I must have missed an earlier failed patch to TEST
somewhere along the way.


-- 
----------------------------------------------------------------------------
Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
DSC Communications               OR apcihq!apcidfw!digi!kgallagh
----------------------------------------------------------------------------

lynn@alberta.uucp (Alynn Klassen) (11/20/90)

In article <rob.658531354@dutncp8>, rob@pact (Rob Kurver) writes:
>I just installed perl (v3.0, upto PL40) on our Silicon Graphics 4D
>Workstation.  It compiles OK, but when I run TEST, it doesn't run a
>single test!  It just comes back and tells me that no tests were run
>for some reason.  When I try to run them by hand many of them appear
>to work just fine.
>Has anybody else seen this behaviour?  I figured I'd ask the net before
>starting to hack at the code.
>Any pointers, suggestions etc. appreciated.
>Rob

Hi,
	I experienced the same behaviour with my 4D 340s running
IRIX 3.3.1 but not with the older 3.2 OS.  Many of the tests,
however, ran correctly when run individually by hand. I noticed
that TEST was "failing" on the lines:

	if ($ARGV[0] eq '') {
	    @ARGV = split(/[ \n]/,`echo base.* comp.* cmd.* io.* op.* lib.*`);
	}

specifically the `echo...` was not working.  I vaguely recalled
that there was some incompatibility introduced in 3.3.1 with the
BSD add-ons, specifically vfork.  I commented out the line:

	#define	VFORK	/**/

in config.h and everything worked fine.

Lynn.
--
Alynn B. Klassen
Manager of Computer Operations  |  phone    : (403) 492-3842
Dept of Computing Science	|  fax      : (403) 492-1071
615 General Services Building   |  Internet : lynn@cs.ualberta.ca
University of Alberta		|  uucp     : lynn@alberta.uucp
Edmonton, Alberta T6G 2H1