From 88ba37f80f4b21f3cacf8c8d803d828ac426c5cc Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Tue, 12 Oct 2010 11:52:11 +0200 Subject: [PATCH] debugger: add explanation to "Type format" manual test Reviewed-by: Friedemann Kleint --- .../gdbdebugger/simple/simple_gdbtest_app.cpp | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index fab3af9e899..3c425320c27 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; } -- GitLab