diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index 6fdf8d57f29335b803bdf82e043a419502b043e8..d3e3d67b15b58b96eab016755bd5dec790e70c93 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