gdb/testsuite: use multi_line in gdb.dwarf2/dw2-reg-undefined.exp
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 27 Aug 2020 18:42:12 +0000 (14:42 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 27 Aug 2020 18:42:38 +0000 (14:42 -0400)
Use multi_line to make the expected pattern more readable.

gdb/testsuite/ChangeLog:

*  gdb.dwarf2/dw2-reg-undefined.exp: Use multi_line.

Change-Id: Ia8e42d156c0c30265121eb890e1db17a692dbaf0

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp

index 344012e7475a173d4c192637c25189f312783374..25835139b36893fe461372e859b1973d71a8f7ad 100644 (file)
@@ -1,3 +1,7 @@
+2020-08-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       *  gdb.dwarf2/dw2-reg-undefined.exp: Use multi_line.
+
 2020-08-27  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * gdb.arch/amd64-byte.exp: Make test names unique, use
index 29564face30b6fe97042b6722d203250578755c9..a3e6f28c54f0821272be973f3511b38ee68ab0c1 100644 (file)
@@ -66,6 +66,11 @@ for {set f 0} {$f < 3} {incr f} {
 
 
     # Display register values.
-    gdb_test "info registers rax rbx rcx r8 r9" "rax\\s+${pattern_rax_rbx_rcx_info}\\s*\r\nrbx\\s+${pattern_rax_rbx_rcx_info}\\s*\r\nrcx\\s+${pattern_rax_rbx_rcx_info}\\s*\r\nr8\\s+${pattern_r8_r9_info}\\s*\r\nr9\\s+${pattern_r8_r9_info}\\s*" \
+    gdb_test "info registers rax rbx rcx r8 r9" \
+       [multi_line "rax\\s+${pattern_rax_rbx_rcx_info}\\s*" \
+                   "rbx\\s+${pattern_rax_rbx_rcx_info}\\s*" \
+                   "rcx\\s+${pattern_rax_rbx_rcx_info}\\s*" \
+                   "r8\\s+${pattern_r8_r9_info}\\s*" \
+                   "r9\\s+${pattern_r8_r9_info}\\s*"] \
        "Check values of rax, rbx, rcx, r8, r9 in frame ${f}"
 }