diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/solib-display.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/solib-display.exp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/solib-display.exp b/gdb/testsuite/gdb.base/solib-display.exp index d1b2c65..b2070c9 100644 --- a/gdb/testsuite/gdb.base/solib-display.exp +++ b/gdb/testsuite/gdb.base/solib-display.exp @@ -86,7 +86,11 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" { continue } - gdb_test "" "3: c_global = 43\\r\\n2: b_global = 42\\r\\n1: a_global = 41" "after rerun" + gdb_test "" [multi_line \ + "1: a_global = 41" \ + "2: b_global = 42" \ + "3: c_global = 43" \ + ] "after rerun" # Now rebuild the library without b_global if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} \ @@ -109,7 +113,12 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" { continue } - gdb_test "" "3: c_global = 43\\r\\nwarning: .*b_global.*\\r\\n1: a_global = 41" "after rerun (2)" + + gdb_test "" [multi_line \ + "1: a_global = 41" \ + "warning: .*b_global.*" \ + "3: c_global = 43" \ + ] "after rerun (2)" # Now verify that displays which are not in the shared library # are not cleared permaturely. @@ -130,5 +139,9 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" { gdb_test "" "6: a_static = 46\\r\\n4: main_global = 44\\r\\n.*" gdb_test "break [gdb_get_line_number "break here" ${testfile}.c]" \ ".*Breakpoint.* at .*" - gdb_test "continue" "6: a_static = 46\\r\\n5: a_local = 45\\r\\n4: main_global = 44\\r\\n.*" + gdb_test "continue" [multi_line \ + "4: main_global = 44" \ + "5: a_local = 45" \ + "6: a_static = 46" \ + ] }} |