aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-08-25 11:22:43 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-08-25 10:42:33 +0000
commitbc8dc952d1671a45a152b4409a52a7045a0d5d7a (patch)
tree79d9c0e7bbd63a8fc3fca7472ff0c62b677fecee
parentf9ab8a7915014b2b8eab7e9379c5cdadd8a8ec70 (diff)
Adapt autotest for MSVC 2015
Linking the "app without sources" autotest fails with MSVC 2015 if stdio.h is included in one of the source files. Simply remove the include; it is not relevant to the tested feature. Change-Id: I99866e231fe3f412b4a0b7ff2341f17ac356da46 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r--tests/auto/api/testdata/app-without-sources/b.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/api/testdata/app-without-sources/b.c b/tests/auto/api/testdata/app-without-sources/b.c
index e3841fa32..ae59bcf65 100644
--- a/tests/auto/api/testdata/app-without-sources/b.c
+++ b/tests/auto/api/testdata/app-without-sources/b.c
@@ -1,10 +1,7 @@
-#include <stdio.h>
-
int foo(); // defined in a.cpp
int main()
{
- printf("The answer is %d.\n", foo());
- return 0;
+ return foo();
}