OSDN Git Service

tests: make compile
authorBill King <bill.king@nokia.com>
Fri, 3 Dec 2010 01:14:01 +0000 (11:14 +1000)
committerBill King <bill.king@nokia.com>
Fri, 3 Dec 2010 01:14:01 +0000 (11:14 +1000)
tests/auto/auto.pro
tests/auto/debugger/tst_gdb.cpp
tests/auto/extensionsystem/pluginspec/tst_pluginspec.cpp
tests/manual/ssh/ssh.pri
tests/tools/trklauncher/main.cpp

index a041af7..92fe3c5 100644 (file)
@@ -16,6 +16,6 @@ SUBDIRS += \
     utils_stringutils \
     filesearch
 
-contains (QT_CONFIG, declarative) {
-SUBDIRS += qml
-}
+#contains (QT_CONFIG, declarative) {
+#SUBDIRS += qml
+#}
index 1fe8bbf..41e7109 100644 (file)
@@ -71,7 +71,7 @@ bool checkUninitialized = false;
 #ifdef Q_OS_WIN
 QString gdbBinary = "c:\\MinGw\\bin\\gdb.exe";
 #else
-QString gdbBinary = "./gdb";
+QString gdbBinary = "gdb";
 #endif
 
 void nothing() {}
index b058c35..bd9de64 100644 (file)
@@ -192,14 +192,14 @@ void tst_PluginSpec::locationAndPath()
 {
     Internal::PluginSpecPrivate spec(0);
     QVERIFY(spec.read("testspecs/simplespec.xml"));
-    QCOMPARE(spec.location, QDir::currentPath()+"/testspecs");
-    QCOMPARE(spec.filePath, QDir::currentPath()+"/testspecs/simplespec.xml");
+    QCOMPARE(spec.location, QString(QDir::currentPath()+"/testspecs"));
+    QCOMPARE(spec.filePath, QString(QDir::currentPath()+"/testspecs/simplespec.xml"));
     QVERIFY(spec.read("testdir/../testspecs/simplespec.xml"));
-    QCOMPARE(spec.location, QDir::currentPath()+"/testspecs");
-    QCOMPARE(spec.filePath, QDir::currentPath()+"/testspecs/simplespec.xml");
+    QCOMPARE(spec.location, QString(QDir::currentPath()+"/testspecs"));
+    QCOMPARE(spec.filePath, QString(QDir::currentPath()+"/testspecs/simplespec.xml"));
     QVERIFY(spec.read("testdir/spec.xml"));
-    QCOMPARE(spec.location, QDir::currentPath()+"/testdir");
-    QCOMPARE(spec.filePath, QDir::currentPath()+"/testdir/spec.xml");
+    QCOMPARE(spec.location, QString(QDir::currentPath()+"/testdir"));
+    QCOMPARE(spec.filePath, QString(QDir::currentPath()+"/testdir/spec.xml"));
 }
 
 void tst_PluginSpec::resolveDependencies()
index e41fd2d..fab9b5d 100644 (file)
@@ -1,6 +1,8 @@
 include (../../../qtcreator.pri)
 include (../../../src/plugins/coreplugin/coreplugin.pri)
 
+LIBS += -L$$IDE_PLUGIN_PATH/Nokia
+
 macx:QMAKE_LFLAGS += -Wl,-rpath,\"$$IDE_BIN_PATH/..\"
 INCLUDEPATH *= $$IDE_SOURCE_TREE/src/plugins
 LIBS *= -L$$IDE_LIBRARY_PATH/Nokia
index eb699e3..6f353db 100644 (file)
@@ -130,7 +130,7 @@ static TrkLauncherPtr parseArguments(const QStringList &arguments, bool *bluetoo
             TrkLauncherPtr launcher = createLauncher(actions, arguments.at(a), serialFrame, verbosity);
             launcher->addStartupActions(trk::Launcher::ActionRun);
             launcher->setFileName(arguments.at(a + 1));
-            launcher->setCommandLineArgs(remoteArguments);
+            launcher->setCommandLineArgs(remoteArguments.join(" "));
             return launcher;
 
         }
@@ -142,7 +142,7 @@ static TrkLauncherPtr parseArguments(const QStringList &arguments, bool *bluetoo
             if (remainingArgsCount == 3) {
                 launcher->addStartupActions(trk::Launcher::ActionRun);
                 launcher->setFileName(arguments.at(a + 2));
-                launcher->setCommandLineArgs(remoteArguments);
+                launcher->setCommandLineArgs(remoteArguments.join(" "));
             }
             return launcher;
         }
@@ -155,7 +155,7 @@ static TrkLauncherPtr parseArguments(const QStringList &arguments, bool *bluetoo
             if (remainingArgsCount == 4) {
                 launcher->addStartupActions(trk::Launcher::ActionRun);
                 launcher->setFileName(arguments.at(a + 3));
-                launcher->setCommandLineArgs(remoteArguments);
+                launcher->setCommandLineArgs(remoteArguments.join(" "));
             }
             return launcher;
         }