redirecting the unittests error output

ref2401 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 14 11:32:42 PST 2015


Unfortunately i'm new to using shells.

I use standard windows cmd. Here is my script:

dmd main.d -debug -unittest -wi

if %errorLevel% equ 0 (
	start main.exe
) else (
	echo --- Building failed! ---
	pause
)

I wrote "start main.exe 2> errorFile" but it doesn't work. 
errorFile is empty.



More information about the Digitalmars-d-learn mailing list