mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Require readline for gdb.linespec/explicit.exp tab-completion tests.
2015-09-18 Sandra Loosemore <sandra@codesourcery.com> gdb/testsuite/ * gdb.linespec/explicit.exp: Check for readline support for tab-completion tests. Fix obvious typo.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2015-09-18 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
|
gdb/testsuite/
|
||||||
|
* gdb.linespec/explicit.exp: Check for readline support for
|
||||||
|
tab-completion tests. Fix obvious typo.
|
||||||
|
|
||||||
2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
|
2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
|
||||||
|
|
||||||
* gdb.btrace/multi-thread-step.exp: Test scheduler-locking on, step,
|
* gdb.btrace/multi-thread-step.exp: Test scheduler-locking on, step,
|
||||||
|
@ -145,6 +145,10 @@ namespace eval $testfile {
|
|||||||
gdb_test "break $linespec thread 123" "Unknown thread 123."
|
gdb_test "break $linespec thread 123" "Unknown thread 123."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Tests below are about tab-completion, which doesn't work if readline
|
||||||
|
# library isn't used. Check it first.
|
||||||
|
if { [readline_is_used] } {
|
||||||
|
|
||||||
# Test the explicit location completer
|
# Test the explicit location completer
|
||||||
foreach abbrev {"fun" "so" "lab" "li"} full {"function" "source" "label" "line"} {
|
foreach abbrev {"fun" "so" "lab" "li"} full {"function" "source" "label" "line"} {
|
||||||
set tst "complete 'break -$abbrev'"
|
set tst "complete 'break -$abbrev'"
|
||||||
@ -169,7 +173,7 @@ namespace eval $testfile {
|
|||||||
if {[string equal $full "source"]} {
|
if {[string equal $full "source"]} {
|
||||||
pass $tst
|
pass $tst
|
||||||
} else {
|
} else {
|
||||||
faill $tst
|
fail $tst
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-re "missing argument for \"-$full\".*$gdb_prompt " {
|
-re "missing argument for \"-$full\".*$gdb_prompt " {
|
||||||
@ -323,8 +327,11 @@ namespace eval $testfile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# NOTE: We don't bother testing more elaborate combinations of options,
|
# NOTE: We don't bother testing more elaborate combinations of options,
|
||||||
# such as "-func main -sour 3ex\t" (main is defined in explicit.c). The
|
# such as "-func main -sour 3ex\t" (main is defined in explicit.c).
|
||||||
# completer cannot handle these yet.
|
# The completer cannot handle these yet.
|
||||||
|
|
||||||
|
}
|
||||||
|
# End of completion tests.
|
||||||
|
|
||||||
# Test pending explicit breakpoints
|
# Test pending explicit breakpoints
|
||||||
gdb_exit
|
gdb_exit
|
||||||
|
Reference in New Issue
Block a user