aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-04-10 09:52:10 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-04-10 09:47:08 +0000
commite763a4f6c3f3a5786fe180241d64cf9318a3d11d (patch)
treea821c80324bcd95c74daece6f8699a8eba30c883 /tests/auto/api
parentf0db86fc73f6b0035475758b53318c4c622c21dd (diff)
Print output on error in TestApi::rc()
Change-Id: I687ed4bf045fbf2f38f3da92635475d317de07d8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/api')
-rw-r--r--tests/auto/api/tst_api.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/api/tst_api.cpp b/tests/auto/api/tst_api.cpp
index 56c40a8cd..d2b5bcc47 100644
--- a/tests/auto/api/tst_api.cpp
+++ b/tests/auto/api/tst_api.cpp
@@ -1841,10 +1841,13 @@ void TestApi::propertiesBlocks()
void TestApi::rc()
{
- BuildDescriptionReceiver receiver;
- const qbs::ErrorInfo errorInfo = doBuildProject("rc", &receiver);
+ BuildDescriptionReceiver bdr;
+ ProcessResultReceiver prr;
+ const qbs::ErrorInfo errorInfo = doBuildProject("rc", &bdr, &prr);
+ if (errorInfo.hasError())
+ qDebug() << prr.output;
VERIFY_NO_ERROR(errorInfo);
- const bool rcFileWasCompiled = receiver.descriptions.contains("compiling test.rc");
+ const bool rcFileWasCompiled = bdr.descriptions.contains("compiling test.rc");
QCOMPARE(rcFileWasCompiled, qbs::Internal::HostOsInfo::isWindowsHost());
}