+2019-08-04 Sandra Loosemore <sandra@codesourcery.com>
+
+ * lib/completion-support.exp (test_gdb_complete_none): Skip
+ tab completion tests if no readline support.
+ (test_gdb_complete_unique_re): Likewise.
+ (test_gdb_complete_multiple): Likewise.
+
2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* gdb.base/info_sources.exp: New file.
# Test that completing LINE completes to nothing.
proc test_gdb_complete_none { input_line } {
- test_gdb_complete_tab_none $input_line
+ if { [readline_is_used] } {
+ test_gdb_complete_tab_none $input_line
+ }
test_gdb_complete_cmd_none $input_line
}
proc test_gdb_complete_unique_re { input_line complete_line_re {append_char " "} {max_completions 0}} {
set append_char_re [string_to_regexp $append_char]
- test_gdb_complete_tab_unique $input_line $complete_line_re $append_char_re
+ if { [readline_is_used] } {
+ test_gdb_complete_tab_unique $input_line $complete_line_re $append_char_re
+ }
# Trim INPUT_LINE and COMPLETE LINE, for the case we're completing
# a command with leading whitespace. Leading command whitespace
cmd_prefix completion_word add_completed_line completion_list
{start_quote_char ""} {end_quote_char ""} {max_completions 0}
} {
- test_gdb_complete_tab_multiple "$cmd_prefix$completion_word" $add_completed_line $completion_list $max_completions
+ if { [readline_is_used] } {
+ test_gdb_complete_tab_multiple "$cmd_prefix$completion_word" $add_completed_line $completion_list $max_completions
+ }
test_gdb_complete_cmd_multiple $cmd_prefix $completion_word $completion_list $start_quote_char $end_quote_char $max_completions
}