[dmd-internals] Failed dmd tests

Michel Fortin michel.fortin at michelf.com
Sun Jan 30 07:13:01 PST 2011


Running the test suite in the DMD repository, there's 3 tests that always fails for me on Mac OS X, all related to coverage analysis. I'm not too sure what to do with them.

The tests are:

	runnable/a20.d
	runnable/cov2.d
	runnable/sieve.d

The problem comes from this in runnable/extra-files/a20-postscript.sh:

	# trim off the last line which contains the path of the file which differs between windows and non-windows
	head -n-1 ${RESULTS_DIR}/runnable/runnable-a20.lst > ${RESULTS_DIR}/runnable/runnable-a20.lst2

It fails with this:

	head: illegal line count -- -1

Looks like 'head' does not support negative numbers on Mac OS X, which is why those tests fail. I'd rather fix them than having to disable them. Any idea?


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the dmd-internals mailing list