]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix wchar.exp test case per review
authorTom Tromey <tromey@adacore.com>
Tue, 8 Jul 2025 14:52:59 +0000 (08:52 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 8 Jul 2025 14:53:48 +0000 (08:53 -0600)
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.

gdb/testsuite/gdb.base/wchar.exp

index 7f09e814b0f65edd784e4172c58924150c8234b6..f0e4777603c5a14026f2d3f93f56beb90daa29b1 100644 (file)
@@ -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]"