Skip tests on completion and readline when readline lib isn't used
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.ada / complete.exp
index 5b52f73aa045b3c332282f9da27e8d9d8b7ff1d5..1e1ebaaf67f5bf6af51a20719fbdcab6bfa0f5f1 100644 (file)
@@ -176,15 +176,18 @@ test_gdb_complete "<pck__my" \
 # The verification we are trying to make involves the event loop,
 # and using the "complete" command is not sufficient to reproduce
 # the original problem.
-set test "interactive complete 'print some'"
-send_gdb "print some\t"
-gdb_test_multiple "" "$test" {
-    -re "^print some_local_variable $" {
-        send_gdb "\n"
-        gdb_test_multiple "" "$test" {
-            -re " = 1$eol$gdb_prompt $" {
-                pass "$test"
-            }
-        }
+
+if { [readline_is_used] } {
+    set test "interactive complete 'print some'"
+    send_gdb "print some\t"
+    gdb_test_multiple "" "$test" {
+       -re "^print some_local_variable $" {
+           send_gdb "\n"
+           gdb_test_multiple "" "$test" {
+               -re " = 1$eol$gdb_prompt $" {
+                   pass "$test"
+               }
+           }
+       }
     }
 }
This page took 0.023927 seconds and 4 git commands to generate.