Skip GDB tab-completion tests if no readline.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 20 Sep 2018 02:05:39 +0000 (19:05 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 20 Sep 2018 02:05:39 +0000 (19:05 -0700)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/complete-empty.exp
gdb/testsuite/gdb.base/utf8-identifiers.exp
gdb/testsuite/gdb.cp/cpcompletion.exp
gdb/testsuite/gdb.linespec/cpcompletion.exp
gdb/testsuite/gdb.linespec/cpls-abi-tag.exp
gdb/testsuite/gdb.linespec/cpls-ops.exp

index 37f252e49e0da10e57f611e8c2e69726ec3b2158..53173c2f18cc3968a5036989a0f592e64eb7fc8f 100644 (file)
@@ -1,3 +1,13 @@
+2018-09-18  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * 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.
+
 2018-09-19  Richard Bunt  <richard.bunt@arm.com>
            Chris January  <chris.january@arm.com>
 
index 6a785388e79c26c9ad49b2d4022e2ccafe0aae4e..57e5aaeb2e15368f88f829aa8e95a2cd99c97d05 100644 (file)
@@ -20,6 +20,14 @@ load_lib completion-support.exp
 gdb_exit
 gdb_start
 
+# 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
+}
+
 # Start of tests.
 
 # Test TAB with no input.
index 12fe3768e2ad2413630901649cbfd432008b019a..a1cc1827b49d609d33d5ef98202143b7cb964e33 100644 (file)
@@ -56,6 +56,14 @@ gdb_test "continue" \
 # names getting in the way of completion.
 gdb_test_no_output "nosharedlibrary"
 
+# 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 linespec completion.
 
 # A unique completion.
index 9ec3bbfa3522fef1d2979d67bdda9168aa496524..73aa3fd0b74ff0b9c7f1c3d4ec500daf4862ad77 100644 (file)
@@ -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]
index d8aa5b2a4967fb49d5234ac096e70b7d4349cc62..48e1e0babb09011d64ca8a0cdac45717ceb2f5e0 100644 (file)
@@ -24,6 +24,14 @@ if {[prepare_for_testing "failed to prepare" $testfile \
     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
+}
+
 # Disable the completion limit for the whole testcase.
 gdb_test_no_output "set max-completions unlimited"
 
index e188637bc07dd6062512da47b7c72c265a16cfd8..b69f85fa77a446396e93858d75dedeed05d08330 100644 (file)
@@ -26,6 +26,14 @@ if {[prepare_for_testing "failed to prepare" $testfile \
     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
+}
+
 gdb_test_no_output "set max-completions unlimited"
 
 # Check that the explicit location completer manages to find the next
index 355735eb417b5dbfe57cd269df1aa6bfd554485d..cc66c8583916d803028bbb383e94ce53d640998b 100644 (file)
@@ -24,6 +24,14 @@ if {[prepare_for_testing "failed to prepare" $testfile \
     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
+}
+
 gdb_test_no_output "set max-completions unlimited"
 
 # Check that the explicit location completer manages to find the next