gdb/
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / completion.exp
index cddc54898ad4684ace43469648838d144c92d52b..7b664bfc25638e16ce0fa721eb5943f5301f300b 100644 (file)
@@ -713,6 +713,13 @@ gdb_test "complete set gnutarget aut" "set gnutarget auto"
 
 gdb_test "complete set cp-abi aut" "set cp-abi auto"
 
+# Test that completion of commands 'target FOO' works well.
+
+foreach target_name { "core" "tfile" "exec" } {
+    gdb_test "complete target ${target_name} ./gdb.base/completion" \
+       "target ${target_name} ./gdb.base/completion\\.exp.*"
+}
+
 # Restore globals modified in this test...
 set timeout $oldtimeout1
 
This page took 0.025969 seconds and 4 git commands to generate.