summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2016-06-12 22:11:27 (GMT)
committerKevin Funk <kfunk@kde.org>2016-06-12 22:13:17 (GMT)
commit4d2b8458e3ea769c00ca2b9c3ebb7e9e0deb175f (patch)
tree6222716d09d5071e0978a89f98152f33e44ee707
parente0eda26201df0a360b6f4b6b6f8a464a9711003a (diff)
Work around GCC bug in GCC 4.8
Error: /home/foo/kdesrc/kdevelop/languages/clang/tests/test_assistants.cpp:62:53: error: unterminated raw string QLoggingCategory::setFilterRules(QStringLiteral(R"( ^ See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55971
-rw-r--r--languages/clang/tests/test_assistants.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/languages/clang/tests/test_assistants.cpp b/languages/clang/tests/test_assistants.cpp
index cfd1f3b..a5dd896 100644
--- a/languages/clang/tests/test_assistants.cpp
+++ b/languages/clang/tests/test_assistants.cpp
@@ -59,11 +59,11 @@ StaticAssistantsManager *staticAssistantsManager() { return Core::self()->langua
void TestAssistants::initTestCase()
{
- QLoggingCategory::setFilterRules(QStringLiteral(R"(
- *.debug=false
- default.debug=true
- kdevelop.plugins.clang.debug=true
- )"));
+ QLoggingCategory::setFilterRules(QStringLiteral(
+ "*.debug=false\n"
+ "default.debug=true\n"
+ "kdevelop.plugins.clang.debug=true\n"
+ ));
QVERIFY(qputenv("KDEV_DISABLE_PLUGINS", "kdevcppsupport"));
QVERIFY(qputenv("KDEV_CLANG_DISPLAY_DIAGS", "1"));
AutoTestShell::init({QStringLiteral("kdevclangsupport")});