summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2018-09-19 19:05:39 -0700
committerSandra Loosemore <sandra@codesourcery.com>2018-09-19 19:05:39 -0700
commit4ee9b0c53a8055b869dfe424846bc00eb0cd0c8f (patch)
treeaaf25f2bc2d3bfe900afdec9e69f2ae1f96c43ba /gdb/testsuite/gdb.cp
parent343a4a21eba7383a023140c33a5763ae1d547fc2 (diff)
downloadbinutils-gdb-4ee9b0c53a8055b869dfe424846bc00eb0cd0c8f.tar.gz
Skip GDB tab-completion tests if no readline.
2018-09-18 Sandra Loosemore <sandra@codesourcery.com> gdb/testsuite/ * gdb.base/complete-empty.exp: Skip tab-completion tests if no readline. * gdb.base/utf8-identifiers.exp: Likewise. * gdb.cp/cpcompletion.exp: Likewise. * gdb.linespec/cpcompletion.exp: Likewise. * gdb.linespec/cpls-abi-tag.exp: Likewise. * gdb.linespec/cpls-ops.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r--gdb/testsuite/gdb.cp/cpcompletion.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/cpcompletion.exp
index 9ec3bbfa352..73aa3fd0b74 100644
--- a/gdb/testsuite/gdb.cp/cpcompletion.exp
+++ b/gdb/testsuite/gdb.cp/cpcompletion.exp
@@ -59,6 +59,14 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
+# Tests below are about tab-completion, which doesn't work if readline
+# library isn't used. Check it first.
+
+if { ![readline_is_used] } {
+ untested "no tab completion support without readline"
+ return -1
+}
+
# Test that completion is restricted by class name (all methods)
test_class_complete Foo "" "complete class methods" \
[list Foo Foofoo get_foo set_foo ~Foo]