Fix qtqa autotest for mingw build.
authorJanne Anttila <janne.anttila@digia.com>
Wed, 16 Jan 2013 06:30:38 +0000 (08:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 25 Jan 2013 12:07:17 +0000 (13:07 +0100)
commitabe2b02f1d3467d40dfb4a4fca9565b518565e81
tree24b5248b1ac77313978a4e502ed7f2232db29428
parentce4b29431c1cd7c2b63afa9a940a02169bc6aac1
Fix qtqa autotest for mingw build.

Skip autotest in 41-print_calling_makefile.t if MinGW is used.
This script is a workaround for nmake's lack of any equivalent
to GNU make's $(MAKEFILE_LIST), thus there is no need to test
it with MinGW builds.

Pass correct make command for testplanner.pl and testscheduler.t,
in respective test cases. Without '--make' argument, the scripts
default to `nmake' on Windows and `make' everywhere else.

Change preprocessor macro used in pass.cpp, so that file compiles
for both Visual Studio and MinGW. According to MS docs
http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx
is always defined for Windows applications (both 32 and 64-bit).

Change-Id: I3a63a8c44b4bb0d0c066d8dc21a6559d54cfdb98
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Simo Fält <simo.falt@digia.com>
Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
scripts/generic/t/40-testplanner.t
scripts/generic/t/41-print_calling_makefile.t
scripts/generic/t/50-testscheduler.t
scripts/generic/t/data/test-projects/src/pass.cpp