aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2020-04-30 13:17:30 +0200
committerHannes Domani <ssbssa@yahoo.de>2020-04-30 17:02:14 +0200
commitd5cf82c0d7a7b13727a2f26425afc9051656a716 (patch)
tree6a1eca0dc9347806e7d95b18433c68e30835606f /gdb/testsuite
parent09c1e68a162f9a2c2cadee916387a147a8af44b7 (diff)
downloadgdb-d5cf82c0d7a7b13727a2f26425afc9051656a716.zip
gdb-d5cf82c0d7a7b13727a2f26425afc9051656a716.tar.gz
gdb-d5cf82c0d7a7b13727a2f26425afc9051656a716.tar.bz2
Adjust array pretty printer tests to the new format
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/py-format-string.exp6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f1efecb..6b25cd8 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp
index faafc81..f809ef3 100644
--- a/gdb/testsuite/gdb.python/py-format-string.exp
+++ b/gdb/testsuite/gdb.python/py-format-string.exp
@@ -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" \