aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/texteditor/generichighlighter/highlighter.h4
-rw-r--r--src/plugins/texteditor/texteditor.qbs3
-rw-r--r--tests/auto/extensionsystem/pluginmanager/circularplugins/plugin1/plugin1.pro2
-rw-r--r--tests/auto/extensionsystem/pluginmanager/circularplugins/plugin2/plugin2.pro2
-rw-r--r--tests/auto/extensionsystem/pluginmanager/circularplugins/plugin3/plugin3.pro2
-rw-r--r--tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin1/plugin1.pro5
-rw-r--r--tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin2/plugin2.pro5
-rw-r--r--tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin3/plugin3.pro5
-rw-r--r--tests/auto/extensionsystem/pluginspec/testplugin/testplugin.pro2
-rw-r--r--tests/auto/utils/fileutils/fileutils.pro6
-rw-r--r--tests/manual/fakevim/fakevim.pro2
-rw-r--r--tests/manual/manual.pro3
-rw-r--r--tests/manual/preprocessor/main.cpp3
-rw-r--r--tests/manual/preprocessor/preprocessor.pro1
-rw-r--r--tests/manual/ssh/remoteprocess/argumentscollector.cpp6
-rw-r--r--tests/manual/ssh/sftp/argumentscollector.cpp6
-rw-r--r--tests/manual/ssh/tunnel/argumentscollector.cpp6
-rw-r--r--tests/manual/utils/tcpportsgatherer/tcpportsgatherer.pro2
-rw-r--r--tests/tools/qml-ast2dot/main.cpp6
-rw-r--r--tests/valgrind/memcheck/memcheck.pro2
-rw-r--r--tests/valgrind/memcheck/modeldemo.pro1
-rw-r--r--tests/valgrind/memcheck/parsertests.pro1
-rw-r--r--tests/valgrind/memcheck/testrunner.pro1
23 files changed, 37 insertions, 39 deletions
diff --git a/src/plugins/texteditor/generichighlighter/highlighter.h b/src/plugins/texteditor/generichighlighter/highlighter.h
index 81a7dd37ffd..ad853c2315d 100644
--- a/src/plugins/texteditor/generichighlighter/highlighter.h
+++ b/src/plugins/texteditor/generichighlighter/highlighter.h
@@ -30,8 +30,8 @@
#ifndef HIGHLIGHTER_H
#define HIGHLIGHTER_H
-#include "../basetextdocumentlayout.h"
-#include "../syntaxhighlighter.h"
+#include "basetextdocumentlayout.h"
+#include "syntaxhighlighter.h"
#include <QString>
#include <QVector>
diff --git a/src/plugins/texteditor/texteditor.qbs b/src/plugins/texteditor/texteditor.qbs
index 897deaf8d37..0db0da5bebf 100644
--- a/src/plugins/texteditor/texteditor.qbs
+++ b/src/plugins/texteditor/texteditor.qbs
@@ -13,7 +13,8 @@ QtcPlugin {
cpp.includePaths: base.concat([
"generichighlighter",
"snippets",
- "codeassist"
+ "codeassist",
+ "."
])
files: [
diff --git a/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin1/plugin1.pro b/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin1/plugin1.pro
index 138e62cc538..83a6ce845af 100644
--- a/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin1/plugin1.pro
+++ b/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin1/plugin1.pro
@@ -14,4 +14,4 @@ COPYFILES = $$OTHER_FILES
include(../../../copy.pri)
TARGET = $$qtLibraryName(plugin1)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
diff --git a/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin2/plugin2.pro b/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin2/plugin2.pro
index 3aebb92fd24..1584db8b9ec 100644
--- a/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin2/plugin2.pro
+++ b/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin2/plugin2.pro
@@ -14,4 +14,4 @@ COPYFILES = $$OTHER_FILES
include(../../../copy.pri)
TARGET = $$qtLibraryName(plugin2)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
diff --git a/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin3/plugin3.pro b/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin3/plugin3.pro
index ad7a68ed5dd..36fa1612674 100644
--- a/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin3/plugin3.pro
+++ b/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin3/plugin3.pro
@@ -14,4 +14,4 @@ COPYFILES = $$OTHER_FILES
include(../../../copy.pri)
TARGET = $$qtLibraryName(plugin3)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
diff --git a/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin1/plugin1.pro b/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin1/plugin1.pro
index 042f432c94f..7b18c767020 100644
--- a/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin1/plugin1.pro
+++ b/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin1/plugin1.pro
@@ -5,16 +5,15 @@ HEADERS += plugin1.h
OTHER_FILES = $$PWD/plugin.spec
-include(../../../../../../qtcreator.pri)
+include(../../../../qttest.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
-include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
include(../../../copy.pri)
TARGET = $$qtLibraryName(plugin1)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
LIBS += -L$$OUT_PWD/../plugin2 -L$$OUT_PWD/../plugin3
LIBS += -l$$qtLibraryName(plugin2) -l$$qtLibraryName(plugin3)
diff --git a/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin2/plugin2.pro b/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin2/plugin2.pro
index b43d9437d48..62ff154e415 100644
--- a/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin2/plugin2.pro
+++ b/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin2/plugin2.pro
@@ -5,16 +5,15 @@ HEADERS += plugin2.h
OTHER_FILES = $$PWD/plugin.spec
-include(../../../../../../qtcreator.pri)
+include(../../../../qttest.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
-include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
include(../../../copy.pri)
TARGET = $$qtLibraryName(plugin2)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
macx {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,$${OUT_PWD}/
diff --git a/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin3/plugin3.pro b/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin3/plugin3.pro
index 9fb23b328dd..914f98a76fb 100644
--- a/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin3/plugin3.pro
+++ b/tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin3/plugin3.pro
@@ -5,16 +5,15 @@ HEADERS += plugin3.h
OTHER_FILES = $$PWD/plugin.spec
-include(../../../../../../qtcreator.pri)
+include(../../../../qttest.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
-include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
include(../../../copy.pri)
TARGET = $$qtLibraryName(plugin3)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
LIBS += -L$$OUT_PWD/../plugin2
LIBS += -l$$qtLibraryName(plugin2)
diff --git a/tests/auto/extensionsystem/pluginspec/testplugin/testplugin.pro b/tests/auto/extensionsystem/pluginspec/testplugin/testplugin.pro
index 5b8d73a5f84..9119d149884 100644
--- a/tests/auto/extensionsystem/pluginspec/testplugin/testplugin.pro
+++ b/tests/auto/extensionsystem/pluginspec/testplugin/testplugin.pro
@@ -14,4 +14,4 @@ COPYFILES = $$PWD/testplugin.xml
include(../../copy.pri)
TARGET = $$qtLibraryName(test)
-DESTDIR = $$OUT_PWD
+CONFIG -= debug_and_release_target
diff --git a/tests/auto/utils/fileutils/fileutils.pro b/tests/auto/utils/fileutils/fileutils.pro
index 8989860f204..5d2530d6689 100644
--- a/tests/auto/utils/fileutils/fileutils.pro
+++ b/tests/auto/utils/fileutils/fileutils.pro
@@ -1,5 +1,4 @@
include(../../qttest.pri)
-include(../shared/shared.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
@@ -7,7 +6,10 @@ UTILSDIR = $$IDE_SOURCE_TREE/src/libs/
INCLUDEPATH += $$UTILSDIR
DEFINES += QTCREATOR_UTILS_LIB
+*-g++ {
+ CONFIG -= warn_on
+ QMAKE_CXXFLAGS += -Wall -Wno-trigraphs
+}
SOURCES += tst_fileutils.cpp \
$$UTILSDIR/utils/fileutils.cpp \
-
diff --git a/tests/manual/fakevim/fakevim.pro b/tests/manual/fakevim/fakevim.pro
index de7f8facbf8..4cb3db33901 100644
--- a/tests/manual/fakevim/fakevim.pro
+++ b/tests/manual/fakevim/fakevim.pro
@@ -1,4 +1,4 @@
-include(../../../qtcreator.pri)
+include(../../auto/qttest.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
FAKEVIMDIR = $$IDE_SOURCE_TREE/src/plugins/fakevim
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
index bdf9adbcf7a..29f79d6c422 100644
--- a/tests/manual/manual.pro
+++ b/tests/manual/manual.pro
@@ -6,8 +6,7 @@ fakevim \
debugger \
preprocessor \
subdir_proparser \
-utils \
-devices
+utils
unix {
# Uses popen
diff --git a/tests/manual/preprocessor/main.cpp b/tests/manual/preprocessor/main.cpp
index 6bbbc9a6eb1..573ab665949 100644
--- a/tests/manual/preprocessor/main.cpp
+++ b/tests/manual/preprocessor/main.cpp
@@ -113,6 +113,9 @@ public:
virtual void stopExpandingMacro(unsigned, const Macro &)
{ }
+ virtual void markAsIncludeGuard(const QByteArray &)
+ { }
+
virtual void startSkippingBlocks(unsigned)
{ }
diff --git a/tests/manual/preprocessor/preprocessor.pro b/tests/manual/preprocessor/preprocessor.pro
index 9cb836d5982..7140a015fec 100644
--- a/tests/manual/preprocessor/preprocessor.pro
+++ b/tests/manual/preprocessor/preprocessor.pro
@@ -7,7 +7,6 @@ include(../../auto/qttest.pri)
include($$IDE_SOURCE_TREE/src/libs/cplusplus/cplusplus.pri)
include($$IDE_SOURCE_TREE/src/libs/languageutils/languageutils.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
-include($$IDE_SOURCE_TREE/src/libs/3rdparty/botan/botan.pri)
# Input
SOURCES += main.cpp
diff --git a/tests/manual/ssh/remoteprocess/argumentscollector.cpp b/tests/manual/ssh/remoteprocess/argumentscollector.cpp
index 3830243535a..2bf9356f0da 100644
--- a/tests/manual/ssh/remoteprocess/argumentscollector.cpp
+++ b/tests/manual/ssh/remoteprocess/argumentscollector.cpp
@@ -126,7 +126,7 @@ bool ArgumentsCollector::checkAndSetStringArg(int &pos, QString &arg, const char
{
if (m_arguments.at(pos) == QLatin1String(opt)) {
if (!arg.isEmpty()) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" was given twice."));
}
arg = m_arguments.at(++pos);
@@ -142,13 +142,13 @@ bool ArgumentsCollector::checkAndSetIntArg(int &pos, int &val,
{
if (m_arguments.at(pos) == QLatin1String(opt)) {
if (alreadyGiven) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" was given twice."));
}
bool isNumber;
val = m_arguments.at(++pos).toInt(&isNumber);
if (!isNumber) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" needs integer argument"));
}
alreadyGiven = true;
diff --git a/tests/manual/ssh/sftp/argumentscollector.cpp b/tests/manual/ssh/sftp/argumentscollector.cpp
index 5869e3a8622..5a8a765e895 100644
--- a/tests/manual/ssh/sftp/argumentscollector.cpp
+++ b/tests/manual/ssh/sftp/argumentscollector.cpp
@@ -124,7 +124,7 @@ bool ArgumentsCollector::checkAndSetStringArg(int &pos, QString &arg, const char
{
if (m_arguments.at(pos) == QLatin1String(opt)) {
if (!arg.isEmpty()) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" was given twice."));
}
arg = m_arguments.at(++pos);
@@ -140,13 +140,13 @@ bool ArgumentsCollector::checkAndSetIntArg(int &pos, int &val,
{
if (m_arguments.at(pos) == QLatin1String(opt)) {
if (alreadyGiven) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" was given twice."));
}
bool isNumber;
val = m_arguments.at(++pos).toInt(&isNumber);
if (!isNumber) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" needs integer argument"));
}
alreadyGiven = true;
diff --git a/tests/manual/ssh/tunnel/argumentscollector.cpp b/tests/manual/ssh/tunnel/argumentscollector.cpp
index 31dde1af6ee..b05a323a41d 100644
--- a/tests/manual/ssh/tunnel/argumentscollector.cpp
+++ b/tests/manual/ssh/tunnel/argumentscollector.cpp
@@ -127,7 +127,7 @@ bool ArgumentsCollector::checkAndSetStringArg(int &pos, QString &arg, const char
{
if (m_arguments.at(pos) == QLatin1String(opt)) {
if (!arg.isEmpty()) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" was given twice."));
}
arg = m_arguments.at(++pos);
@@ -143,13 +143,13 @@ bool ArgumentsCollector::checkAndSetIntArg(int &pos, int &val,
{
if (m_arguments.at(pos) == QLatin1String(opt)) {
if (alreadyGiven) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" was given twice."));
}
bool isNumber;
val = m_arguments.at(++pos).toInt(&isNumber);
if (!isNumber) {
- throw ArgumentErrorException(QLatin1String("option ") + opt
+ throw ArgumentErrorException(QLatin1String("option ") + QLatin1String(opt)
+ QLatin1String(" needs integer argument"));
}
alreadyGiven = true;
diff --git a/tests/manual/utils/tcpportsgatherer/tcpportsgatherer.pro b/tests/manual/utils/tcpportsgatherer/tcpportsgatherer.pro
index 0e500831e25..001b5f41ad6 100644
--- a/tests/manual/utils/tcpportsgatherer/tcpportsgatherer.pro
+++ b/tests/manual/utils/tcpportsgatherer/tcpportsgatherer.pro
@@ -7,7 +7,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += console
CONFIG -= app_bundle
-include(../../../../qtcreator.pri)
+include(../../../auto/qttest.pri)
include(../../../../src/rpath.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
diff --git a/tests/tools/qml-ast2dot/main.cpp b/tests/tools/qml-ast2dot/main.cpp
index 870ad508460..3213ba0e76e 100644
--- a/tests/tools/qml-ast2dot/main.cpp
+++ b/tests/tools/qml-ast2dot/main.cpp
@@ -58,7 +58,7 @@ public:
void operator()(const QString &fileName, const QByteArray &src, Node *ast) {
_src = src;
QString basename = fileName;
- int dotIdx = basename.lastIndexOf('.');
+ int dotIdx = basename.lastIndexOf(QLatin1Char('.'));
if (dotIdx != -1)
basename.truncate(dotIdx);
basename.append(QLatin1String(".ast.dot"));
@@ -99,7 +99,7 @@ protected:
}
QString spell(const SourceLocation &token) {
- return _src.mid(token.offset, token.length).replace('\'', "\\\\").replace('"', "\\\"");
+ return QString::fromLatin1(_src.mid(token.offset, token.length).replace('\'', "\\\\").replace('"', "\\\""));
}
void terminal(const SourceLocation &token) {
@@ -332,7 +332,7 @@ int main(int argc, char *argv[])
file.close();
Document::MutablePtr doc = Document::create(fileName, Document::guessLanguageFromSuffix(fileName));
- doc->setSource(source);
+ doc->setSource(QString::fromUtf8(source));
doc->parse();
foreach (const DiagnosticMessage &m, doc->diagnosticMessages()) {
diff --git a/tests/valgrind/memcheck/memcheck.pro b/tests/valgrind/memcheck/memcheck.pro
index ee72ee00107..eed8482d763 100644
--- a/tests/valgrind/memcheck/memcheck.pro
+++ b/tests/valgrind/memcheck/memcheck.pro
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
-
+CONFIG += ordered
SUBDIRS += parsertests.pro modeldemo.pro testapps testrunner.pro
diff --git a/tests/valgrind/memcheck/modeldemo.pro b/tests/valgrind/memcheck/modeldemo.pro
index eb843efdf7d..5ce312ede7b 100644
--- a/tests/valgrind/memcheck/modeldemo.pro
+++ b/tests/valgrind/memcheck/modeldemo.pro
@@ -1,6 +1,5 @@
include(../../../qtcreator.pri)
include(../../auto/qttestrpath.pri)
-include($$IDE_SOURCE_TREE/src/libs/3rdparty/botan/botan.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
include($$IDE_SOURCE_TREE/src/libs/ssh/ssh.pri)
include($$IDE_SOURCE_TREE/src/plugins/valgrind/valgrind_test.pri)
diff --git a/tests/valgrind/memcheck/parsertests.pro b/tests/valgrind/memcheck/parsertests.pro
index e58578dabe3..8da114d90fe 100644
--- a/tests/valgrind/memcheck/parsertests.pro
+++ b/tests/valgrind/memcheck/parsertests.pro
@@ -1,5 +1,4 @@
include(../../auto/qttest.pri)
-include($$IDE_SOURCE_TREE/src/libs/3rdparty/botan/botan.pri)
include($$IDE_SOURCE_TREE/src/libs/ssh/ssh.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
include($$IDE_SOURCE_TREE/src/plugins/valgrind/valgrind_test.pri)
diff --git a/tests/valgrind/memcheck/testrunner.pro b/tests/valgrind/memcheck/testrunner.pro
index fea9eebd00b..acfa3a20476 100644
--- a/tests/valgrind/memcheck/testrunner.pro
+++ b/tests/valgrind/memcheck/testrunner.pro
@@ -1,6 +1,5 @@
include(../../auto/qttest.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
-include($$IDE_SOURCE_TREE/src/libs/3rdparty/botan/botan.pri)
include($$IDE_SOURCE_TREE/src/libs/ssh/ssh.pri)
include($$IDE_SOURCE_TREE/src/plugins/valgrind/valgrind_test.pri)