Make qqmlinspector test work on Windows
authorCharles Yin <charles.yin@nokia.com>
Mon, 19 Mar 2012 04:05:23 +0000 (14:05 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 11:02:48 +0000 (12:02 +0100)
Change-Id: Ib7399f9a005d3674fcb46c605cea3a8d40c21284
Reviewed-by: Martin Jones <martin.jones@nokia.com>

tests/auto/qml/debugger/qqmlinspector/app/app.pro
tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp

index 9c7574a..ce8bfc6 100644 (file)
@@ -1,4 +1,5 @@
 TARGET = app
+DESTDIR = $$OUT_PWD
 QT += qml quick
 
 CONFIG += declarative_debug
index e30b847..39e0f0d 100644 (file)
@@ -141,7 +141,11 @@ void tst_QQmlInspector::cleanupTestCase()
 
 void tst_QQmlInspector::init()
 {
+#if defined(Q_OS_WIN)
+    const QString executable = "app\\app.exe";
+#else
     const QString executable = "app/app";
+#endif
     const QString argument = "-qmljsdebugger=port:"STR_PORT",block";
 
     m_process = new QQmlDebugProcess(executable);