summaryrefslogtreecommitdiff
path: root/tests/auto/debugger/tst_dumpers.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-01-23 17:54:00 +0100
committerhjk <hjk@theqtcompany.com>2015-01-26 22:09:24 +0100
commit962649317b57561cb62b121dbf31a074fbf9224e (patch)
treee0d6e133fbb04ca3399b78ffe75a77333a0e3f59 /tests/auto/debugger/tst_dumpers.cpp
parent31fecb082033f6614986aeb649e571f059176d09 (diff)
downloadqt-creator-962649317b57561cb62b121dbf31a074fbf9224e.tar.gz
Debugger: Make LLDB autotest produce output on Linux again
Change-Id: I0ea21b248b51a871753f66e386fd125df1d1ead5 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'tests/auto/debugger/tst_dumpers.cpp')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 3a473677ab..23a16adb35 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -1104,9 +1104,18 @@ void tst_Dumpers::dumper()
"\n#define BREAK int *nullPtr = 0; *nullPtr = 0;"
"\n\nvoid unused(const void *first,...) { (void) first; }"
"\n#else"
- "\n#include <stdint.h>\n"
- "\n#define BREAK do { asm(\"int $3\"); } while (0)"
- "\n"
+ "\n#include <stdint.h>\n";
+
+ if (m_debuggerEngine == LldbEngine)
+//#ifdef Q_OS_MAC
+// fullCode += "\n#define BREAK do { asm(\"int $3\"); } while (0)";
+//#else
+ fullCode += "\n#define BREAK int *nullPtr = 0; *nullPtr = 0;";
+//#endif
+ else
+ fullCode += "\n#define BREAK do { asm(\"int $3\"); } while (0)";
+
+ fullCode += "\n"
"\nstatic volatile int64_t unused_dummy;\n"
"\nvoid __attribute__((optimize(\"O0\"))) unused(const void *first,...)\n"
"\n{\n"
@@ -1254,7 +1263,7 @@ void tst_Dumpers::dumper()
<< QString::fromUtf8(m_debuggerBinary)
<< t->buildPath + QLatin1String("/doit")
<< QString::fromUtf8(expanded);
- //qDebug() << exe.constData() << ' ' << qPrintable(args.join(QLatin1String(" ")));
+ qDebug() << exe.constData() << ' ' << qPrintable(args.join(QLatin1String(" ")));
}
t->input = cmds;
@@ -2980,7 +2989,7 @@ void tst_Dumpers::dumper_data()
"QString str2(\"Hello\\nQt\");\n"
"QString str3(\"Hello\\rQt\");\n"
"QString str4(\"Hello\\tQt\");\n"
- "unused(&str1, &str2, &str3, &str3);\n")
+ "unused(&str1, &str2, &str3, &str4);\n")
+ CoreProfile()