aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/wchar.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/wchar.exp b/gdb/testsuite/gdb.base/wchar.exp
index 7f09e81..f0e4777 100644
--- a/gdb/testsuite/gdb.base/wchar.exp
+++ b/gdb/testsuite/gdb.base/wchar.exp
@@ -74,5 +74,5 @@ gdb_test "print repeat_p" "= $hex L\"A$cent$cent\"\.\.\." \
gdb_test "printf \"%ls\\n\", 0" "\\(null\\)"
# From PR exp/33124 - a bug when converting escapes.
-set result [string_to_regexp {L'\\'}]
-gdb_test "print L'\\\\'" " = $decimal $result"
+set wbs {L'\\'}
+gdb_test "print $wbs" " = $decimal [string_to_regexp $wbs]"