From 5563e99c4b6648e3fd55145605ec7207da7ac8a1 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Tue, 12 Jul 2011 09:29:06 +0200 Subject: [PATCH] debugger: add manual test Change-Id: If54f6ba90915e9576f14f03f584ac90aab2b1fef Reviewed-on: http://codereview.qt.nokia.com/1494 Reviewed-by: hjk <qthjk@ovi.com> --- .../gdbdebugger/simple/simple_gdbtest_app.cpp | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index 6fdf8d57f29..d3e3d67b15b 100644 --- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp +++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp @@ -2345,9 +2345,29 @@ namespace basic { dummyStatement(&s); } + static char buf[20] = { 0 }; + + void testCharStar() + { + char *s = buf; + // <=== break here. + // Expand 's' in Locals view. + // Open pinnable tooltip. + // Step over. + // Check that display and tooltip look sane. + s = strcat(s,"\""); + s = strcat(s,"\""); + s = strcat(s,"a"); + s = strcat(s,"b"); + s = strcat(s,"\""); + // Close tooltip. + dummyStatement(&s); + } + void testBasic() { testChar(); + testCharStar(); } } // basic -- GitLab