dw2-zero-range.exp looks for a certain complaint, but this won't be
issued when an index is in use. This patch changes the test to not
fail in this case.
}
}
- gdb_assert { $have_complaint } $test
+ # The complaint won't be seen if an index is in use.
+ if {[have_index $lib1] == ""} {
+ gdb_assert { $have_complaint } $test
+ }
}
if { ! $readnow_p } {
gdb_load $lib1
set test "Zero address complaint - unrelocated - psymtab"
set have_complaint [regexp $re.* $gdb_file_cmd_msg]
- gdb_assert { $have_complaint } $test
+ # The complaint won't be seen if an index is in use.
+ if {[have_index $lib1] == ""} {
+ gdb_assert { $have_complaint } $test
+ }
}
gdb_test_no_output "maint set dwarf synchronous off"