On Mon, Jul 18, 2011 at 08:10:07AM +0000, Simon Peyton-Jones wrote:
> In a validate run I got a failure of libraries/random/tests/rangeTest, (see
> below).
>
> When I cd'd to that directory and said "make rangeTest" it was fine.
>
> I suspect a multi-threaded make race condition. Ian, does that look possible?
The problem is this, in libraries/random/tests/all.T:
# This lets me run tests from the test directory during development:
opts = '-i.. -XCPP '
This is causing all the tests to compile the source, rather than using
the package. If two of the tests get run in parallel then there is a
race condition.
Ryan, could you handle this differently, so those flags don't get passed
by default, please? Perhaps have them conditionally set, based on
whether a file has been 'touch'ed or whether a make variable has been
set, or maybe make a testsuite wrapper for yourself which builds the
package so that they aren't necessary?
Thanks
Ian
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc