[dmd-internals] Failed dmd tests

Jason House jason.james.house at gmail.com
Sun Jan 30 08:28:06 PST 2011


Try "tail -n 1"

Sent from my iPhone

On Jan 30, 2011, at 10:13 AM, Michel Fortin <michel.fortin at michelf.com> wrote:

> 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/
> 
> 
> 
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals


More information about the dmd-internals mailing list