aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-09-16 10:57:17 +0200
committerTom de Vries <tdevries@suse.de>2020-09-16 10:57:17 +0200
commit4d91ddd342b507a177fb84b73fdb6c0403323f79 (patch)
tree6d9ce7be20e8d575d2415c10a735b682c23b7393 /gdb/testsuite
parentc1229f84a41a6aba5b7df1f4261a9336347b068a (diff)
downloadgdb-4d91ddd342b507a177fb84b73fdb6c0403323f79.zip
gdb-4d91ddd342b507a177fb84b73fdb6c0403323f79.tar.gz
gdb-4d91ddd342b507a177fb84b73fdb6c0403323f79.tar.bz2
[gdb/testsuite] Fix unbalanced braces in gdb.tui/new-layout.exp
On SLE-11 with tcl version 8.5, we run into: ... UNRESOLVED: gdb.tui/new-layout.exp: testcase aborted due to \ invalid command name: } ERROR: Couldn't send tui new-layout example src 1} to GDB. ... Apparently tcl 8.6 is more forgiving about unbalanced braces. Expose the unbalanced braces on tcl 8.6 by temporarily wrapping the test-case in: ... proc do_this { args } { uplevel 1 {*}$args } do_this { ... } ... and escape them using a backslash. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-09-16 Tom de Vries <tdevries@suse.de> PR testsuite/26618 * gdb.tui/new-layout.exp: Escape unbalanced braces.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.tui/new-layout.exp12
2 files changed, 11 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0438760..5e3125c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-16 Tom de Vries <tdevries@suse.de>
+
+ PR testsuite/26618
+ * gdb.tui/new-layout.exp: Escape unbalanced braces.
+
2020-09-15 Tom Tromey <tromey@adacore.com>
PR rust/26197:
diff --git a/gdb/testsuite/gdb.tui/new-layout.exp b/gdb/testsuite/gdb.tui/new-layout.exp
index b4fca67..57c3f75 100644
--- a/gdb/testsuite/gdb.tui/new-layout.exp
+++ b/gdb/testsuite/gdb.tui/new-layout.exp
@@ -42,12 +42,12 @@ gdb_test "tui new-layout example src 1 src 1" \
"Window \"src\" seen twice in layout"
gdb_test "tui new-layout example src 1" \
"New layout does not contain the \"cmd\" window"
-gdb_test "tui new-layout example src 1}" \
- "Extra '}' in layout specification"
-gdb_test "tui new-layout example {src 1} 1}" \
- "Extra '}' in layout specification"
-gdb_test "tui new-layout example {src 1" \
- "Missing '}' in layout specification"
+gdb_test "tui new-layout example src 1\}" \
+ "Extra '\}' in layout specification"
+gdb_test "tui new-layout example {src 1} 1\}" \
+ "Extra '\}' in layout specification"
+gdb_test "tui new-layout example \{src 1" \
+ "Missing '\}' in layout specification"
gdb_test_no_output "tui new-layout example asm 1 status 0 cmd 1"