+2013-01-23 Tom Tromey <tromey@redhat.com>
+
+ * gdb.dwarf2/dw2-error.exp: Pass test name to "file" test.
+
2013-01-23 Tom Tromey <tromey@redhat.com>
* gdb.cp/converts.cc (main): Initialize 'a'.
-# 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
# 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.*"