aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.cp/cpcompletion.exp3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index ff1b009..3f10965 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+ * gdb.cp/cpcompletion.exp: Specify source file name explicitly.
+
+2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
+
* gdb.base/comp-dir/subdir/dummy.txt: New file.
* gdb.base/completion.exp: Use comp-dir/subdir instead of creating
a temporary directory.
diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/cpcompletion.exp
index 69c2c6f..1afcc3e 100644
--- a/gdb/testsuite/gdb.cp/cpcompletion.exp
+++ b/gdb/testsuite/gdb.cp/cpcompletion.exp
@@ -76,8 +76,9 @@ gdb_load ${binfile}
set bp_location [gdb_get_line_number "Set breakpoint here" ${testfile}.cc]
-if {![runto $bp_location]} {
+if {![runto "${testfile}.cc:$bp_location"]} {
perror "test suppressed"
+ return
}
# This also tests inheritance -- completion should only see a single