Re: redirecting the unittests error output

2015-01-15 Thread Mike Parker via Digitalmars-d-learn
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

Re: redirecting the unittests error output

2015-01-15 Thread ref2401 via Digitalmars-d-learn
Thank you.

Re: redirecting the unittests error output

2015-01-15 Thread Mike Parker via Digitalmars-d-learn
[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

Re: redirecting the unittests error output

2015-01-14 Thread John Colvin via Digitalmars-d-learn
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

redirecting the unittests error output

2015-01-14 Thread ref2401 via Digitalmars-d-learn
How can i redirect the unittests error output to a file?

Re: redirecting the unittests error output

2015-01-14 Thread ref2401 via Digitalmars-d-learn
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.