diff options
author | hjk <hjk@theqtcompany.com> | 2016-05-27 13:19:16 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-05-31 12:12:33 +0000 |
commit | e108d6fe48709cb92a99a9ab07f78928c24a645e (patch) | |
tree | f1a14baba07b80fb1d1db02d786300b41d733fde /tests/auto | |
parent | 752c2cd67f4b4c866846fe2e09df3386a4038fb3 (diff) | |
download | qt-creator-e108d6fe48709cb92a99a9ab07f78928c24a645e.tar.gz |
Debugger: Fix transport of negative signed chars
Change-Id: I9b25d4b8e4b68d9cef674581d1a42eb75e21ec56
Task-number: QTCREATORBUG-16353
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/debugger/tst_dumpers.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index e36c1ab459..7826eadc84 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -4758,6 +4758,24 @@ void tst_Dumpers::dumper_data() + Check("a.#1.i", "42", "int") % LldbEngine + Check("a.#2.f", ff, "float") % LldbEngine; + QTest::newRow("Chars") + << Data("#include <qglobal.h>\n", + "char c = -12;\n" + "signed char sc = -12;\n" + "unsigned char uc = -12;\n" + "qint8 qs = -12;\n" + "quint8 qu = -12;\n" + "unused(&c, &sc, &uc, &qs, &qu);\n") + + + Check("c", "-12", "char") // on all our platforms char is signed. + + Check("sc", "-12", "signed char") % NoCdbEngine + + Check("sc", "-12", "char") % CdbEngine + + Check("uc", "244", "unsigned char") + + Check("qs", "-12", "@qint8") % NoCdbEngine + + Check("qs", "-12", "char") % CdbEngine + + Check("qu", "244", "@quint8") % NoCdbEngine + + Check("qu", "244", "unsigned char") % CdbEngine; + QTest::newRow("CharArrays") << Data("char s[] = \"aöa\";\n" |