]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Adjust array pretty printer tests to the new format
authorHannes Domani <ssbssa@yahoo.de>
Thu, 30 Apr 2020 11:17:30 +0000 (13:17 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Thu, 30 Apr 2020 15:02:14 +0000 (17:02 +0200)
gdb/testsuite/ChangeLog:

2020-04-30  Hannes Domani  <ssbssa@yahoo.de>

* gdb.python/py-format-string.exp: Adjust pretty_arrays expected
output to the new format.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-format-string.exp

index f1efecb5f5ea95741ae27db217a53bb3653cac47..6b25cd8a51bbabdeeed714bb645e5c6b0c86113e 100644 (file)
@@ -1,3 +1,8 @@
+2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
+
+       * gdb.python/py-format-string.exp: Adjust pretty_arrays expected
+       output to the new format.
+
 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
 
        * gdb.base/break.exp: Use with_test_prefix.
index faafc81c6b05246c78b1e743281b2547d2735f3f..f809ef30cb39896a8efee3c4b5c8451843f1bc52 100644 (file)
@@ -291,9 +291,9 @@ proc test_raw {} {
 proc test_pretty_arrays {} {
   global current_lang
 
-  set an_array_pretty "  \\{2,\[\r\n\]+  3,\[\r\n\]+  5\\}"
+  set an_array_pretty "\\{\[\r\n\]+  2,\[\r\n\]+  3,\[\r\n\]+  5\[\r\n\]+\\}"
   set an_array_with_repetition_pretty \
-    "  \\{1,\[\r\n\]+  3 <repeats 12 times>,\[\r\n\]+  5,\[\r\n\]+  5,\[\r\n\]+  5\\}"
+    "\\{\[\r\n\]+  1,\[\r\n\]+  3 <repeats 12 times>,\[\r\n\]+  5,\[\r\n\]+  5,\[\r\n\]+  5\[\r\n\]+\\}"
 
   check_var_with_bool_opt "pretty_arrays" "a_point_t"
   check_var_with_bool_opt "pretty_arrays" "a_point_t_pointer"
@@ -886,7 +886,7 @@ proc test_mixed {} {
 
   check_format_string "an_array" \
     "array_indexes=True, pretty_arrays=True" \
-    "  \\{\\\[0\\\] = 2,\[\r\n\]+  \\\[1\\\] = 3,\[\r\n\]+  \\\[2\\\] = 5\\}"
+    "\\{\[\r\n\]+  \\\[0\\\] = 2,\[\r\n\]+  \\\[1\\\] = 3,\[\r\n\]+  \\\[2\\\] = 5\[\r\n\]+\\}"
 
   check_format_string "a_struct_with_union" \
     "pretty_structs=True, unions=False" \