forked from qt-creator/qt-creator
Debugger: Adjust a few autotests to work with LLDB
LLDB doesn't find const[] in the function, since this is not what the tests are supposed to check, dropping the const is simpler than using backend specific checks. Change-Id: Ifad1a57a3112b7cc5e86865e0035bab35cf5523d Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -4276,9 +4276,9 @@ GdbEngine
|
|||||||
|
|
||||||
|
|
||||||
QTest::newRow("CharArrays")
|
QTest::newRow("CharArrays")
|
||||||
<< Data("const char s[] = \"aöa\";\n"
|
<< Data("char s[] = \"aöa\";\n"
|
||||||
"const char t[] = \"aöax\";\n"
|
"char t[] = \"aöax\";\n"
|
||||||
"const wchar_t w[] = L\"aöa\";\n"
|
"wchar_t w[] = L\"aöa\";\n"
|
||||||
"unused(&s, &t, &w);\n")
|
"unused(&s, &t, &w);\n")
|
||||||
|
|
||||||
+ CheckType("s", "char [5]")
|
+ CheckType("s", "char [5]")
|
||||||
@@ -4289,7 +4289,7 @@ GdbEngine
|
|||||||
QTest::newRow("CharPointers")
|
QTest::newRow("CharPointers")
|
||||||
<< Data("const char *s = \"aöa\";\n"
|
<< Data("const char *s = \"aöa\";\n"
|
||||||
"const char *t = \"a\\xc3\\xb6\";\n"
|
"const char *t = \"a\\xc3\\xb6\";\n"
|
||||||
"const unsigned char uu[] = { 'a', 153 /* ö Latin1 */, 'a' };\n"
|
"unsigned char uu[] = { 'a', 153 /* ö Latin1 */, 'a' };\n"
|
||||||
"const unsigned char *u = uu;\n"
|
"const unsigned char *u = uu;\n"
|
||||||
"const wchar_t *w = L\"aöa\";\n"
|
"const wchar_t *w = L\"aöa\";\n"
|
||||||
"unused(&s, &t, &uu, &u, &w);\n")
|
"unused(&s, &t, &uu, &u, &w);\n")
|
||||||
|
Reference in New Issue
Block a user