From: Tom Tromey Date: Tue, 8 Jul 2025 14:52:59 +0000 (-0600) Subject: Fix wchar.exp test case per review X-Git-Tag: binutils-2_45~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff38d7218d23b807fb03ddbd7ebba6cc0aed5364;p=thirdparty%2Fbinutils-gdb.git Fix wchar.exp test case per review A recent patch of mine modified wchar.exp, but I failed to notice one part of the review. This patch updates the code to conform to the review comments. --- diff --git a/gdb/testsuite/gdb.base/wchar.exp b/gdb/testsuite/gdb.base/wchar.exp index 7f09e814b0f..f0e4777603c 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]"