Skip tests on completion and readline when readline lib isn't used
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-cmd.exp
index c48c8bf37ffc32251f0f1f8da9bc02dd9009bcf5..a87aecba7a22d67fcf8bedebe1631c90c6a83c23 100644 (file)
@@ -177,14 +177,16 @@ gdb_test "complete expr_test bar\." \
     "expr_test bar\.bc.*expr_test bar\.ij.*" \
     "Test completion through complete command"
 
-set test "complete 'expr_test bar.i'"
-send_gdb "expr_test bar\.i\t\t"
-gdb_test_multiple "" "$test" {
-    -re "expr_test bar\.ij \\\x07$" {
-       send_gdb "\n"
-       gdb_test_multiple "" $test {
-           -re "invoked on = bar.ij.*$gdb_prompt $" {
-               pass "$test"
+if { [readline_is_used] } {
+    set test "complete 'expr_test bar.i'"
+    send_gdb "expr_test bar\.i\t\t"
+    gdb_test_multiple "" "$test" {
+       -re "expr_test bar\.ij \\\x07$" {
+           send_gdb "\n"
+           gdb_test_multiple "" $test {
+               -re "invoked on = bar.ij.*$gdb_prompt $" {
+                   pass "$test"
+               }
            }
        }
     }
This page took 0.023645 seconds and 4 git commands to generate.