On 1/15/2015 4:32 AM, ref2401 wrote:
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
Thank you.
[1]
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true
[2]
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/start.mspx?mfr=true
On Wednesday, 14 January 2015 at 18:50:04 UTC, ref2401 wrote:
How can i redirect the unittests error output to a file?
You redirect stderr to a file using whatever tools your shell
provides you. In anything related to unix sh you would do
something like this:
./run_unittests 2errorFile
How can i redirect the unittests error output to a file?
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.