Fortran, testsuite: Use multi_line in whatis_type testcase.
authorBernhard Heckel <bernhard.heckel@intel.com>
Wed, 25 May 2016 06:47:16 +0000 (08:47 +0200)
committerBernhard Heckel <bernhard.heckel@intel.com>
Wed, 25 May 2016 06:47:16 +0000 (08:47 +0200)
2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>

gdb/testsuite/Changelog:
* gdb.fortran/whatis_type.exp: Use multi_line.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/whatis_type.exp

index 09b4c354622977616f2d67d867416de00d488321..c518f153f945e0be281070fe5bdf0ba8b25d3bd5 100644 (file)
@@ -1,3 +1,7 @@
+2016-05-25  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * gdb.fortran/whatis_type.exp: Use multi_line.
+
 2016-05-24  Tom Tromey  <tom@tromey.com>
 
        PR python/17386:
index af897a6dc77d9c1408f85c877ff54611dee549bf..b6324e69762819b6c17de8d94ffbd26ec75cefb2 100644 (file)
@@ -39,15 +39,27 @@ set t1_i "$int :: t1_i"
 set t1_r "$real :: t1_r"
 
 gdb_test "whatis t1" \
-  "type = Type t1\r\n${t1_i}\r\n${t1_r}\r\nEnd Type t1" \
+  [multi_line "type = Type t1" \
+                 "$t1_i" \
+                 "$t1_r" \
+                 "End Type t1"] \
   "whatis t1"
 gdb_test "whatis t1v" \
-  "type = Type t1\r\n${t1_i}\r\n${t1_r}\r\nEnd Type t1" \
+  [multi_line "type = Type t1" \
+                 "$t1_i" \
+                 "$t1_r" \
+                 "End Type t1"] \
   "whatis t1v"
 
 gdb_test "ptype t1" \
-  "type = Type t1\r\n    ${t1_i}\r\n    ${t1_r}\r\nEnd Type t1" \
+  [multi_line "type = Type t1" \
+                 "    $t1_i" \
+                 "    $t1_r" \
+                 "End Type t1"] \
   "ptype t1"
 gdb_test "ptype t1v" \
-  "type = Type t1\r\n    ${t1_i}\r\n    ${t1_r}\r\nEnd Type t1" \
+  [multi_line "type = Type t1" \
+                 "    $t1_i" \
+                 "    $t1_r" \
+                 "End Type t1"] \
   "ptype t1v"