summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-23 21:04:45 +0000
committerTom Tromey <tromey@redhat.com>2013-01-23 21:04:45 +0000
commit14b1b34ab5478da76a63608b7c786dc66ee68c6c (patch)
treee836875f81daa8c0dc1ca15fb7ab10f2fe87db17 /gdb/testsuite/gdb.dwarf2
parentdb3e984332191efbe8c7713dba07d813611af37f (diff)
downloadgdb-14b1b34ab5478da76a63608b7c786dc66ee68c6c.tar.gz
* gdb.dwarf2/dw2-error.exp: Pass test name to "file" test.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-error.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-error.exp
index 22c774788d9..d0baeea5767 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-error.exp
@@ -1,4 +1,4 @@
-# Copyright 2012 Free Software Foundation, Inc.
+# Copyright 2012, 2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -36,7 +36,8 @@ gdb_test_no_output "set breakpoint pending off"
# First test that reading symbols fails.
gdb_test "file $binfile" \
- "Reading symbols.*Dwarf Error: wrong version in compilation unit header .is 153, should be 2, 3, or 4.*"
+ "Reading symbols.*Dwarf Error: wrong version in compilation unit header .is 153, should be 2, 3, or 4.*" \
+ "file $testfile"
# Now check that we can still break given the minimal symbol.
gdb_test "break main" "Breakpoint $decimal.*"