Re: Inline tests fail with "HARNESS_OPTIONS=j9"

[email protected] ("Sisyphus")
Newsgroups perl.inline
Message-ID <91C9A23AEF8B4065A2058F986F1E6D91@desktop2>
----- Original Message ----- 
From: "David Oswald" <[email protected]>
To: "inline" <[email protected]>
Sent: Sunday, November 18, 2012 6:07 AM
Subject: Inline tests fail with "HARNESS_OPTIONS=j9"


> This might seem obvious, but I stumble on it from time to time.  Inline's
> testing fails if the environment variable HARNESS_OPTIONS has "jn" set (n
> being number of simultaneous processes permitted).
>
> There seem to be fewer and fewer modules for which this is a problem.  I
> think that many compilers are not happy with being run in parallel, so
> probably the best way to handle it is to have our Makefile.PL set 'make
> test' to temporarily unset HARNESS_OPTIONS.  Does anyone have any idea how
> to do that?

I don't know how to do this with 'make test', but the test scripts 
themselves should be able to query and alter $ENV{HARNESS_OPTIONS}.
I think that would achieve the desired result, so long as any such fiddling 
is done in a BEGIN{} block at the very start of the script.

Cheers,
Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.