diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index fab3af9e8997c510cc996dfc53842c208eac2e13..3c425320c277158e83468b54baf9f482ef4199ef 100644 --- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp +++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp @@ -1421,6 +1421,26 @@ Foo testStruct() return f1; } +void testTypeFormats() +{ + // These tests should result in properly displayed umlauts in the + // Locals&Watchers view. It is only support on gdb with Python. + + // Select UTF-8 in "Change Format for Type" in L&W context menu. + const char *s = "aöa"; + + // Windows: Select UTF-16 in "Change Format for Type" in L&W context menu. + // Other: Select UCS-6 in "Change Format for Type" in L&W context menu. + const wchar_t *w = L"aöa"; + + // Make sure to undo "Change Format". + int dummy = 1; + Q_UNUSED(s); + Q_UNUSED(w); + Q_UNUSED(dummy); +} + + class Thread : public QThread { public: @@ -2065,14 +2085,12 @@ int main(int argc, char *argv[]) testStdStack(); testStdString(); testStdVector(); + testTypeFormats(); testPassByReference(); testPlugin(); testQList(); testQLinkedList(); - const char *s = "aöa"; - // wchar_t * support only with Python. - const wchar_t *w = L"aöa"; testNamespace(); //return 0; testQHash(); @@ -2100,9 +2118,6 @@ int main(int argc, char *argv[]) //QColor color(255,128,10); //QFont font; - - Q_UNUSED(s); - Q_UNUSED(w); return 0; }