This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: fix test name in dw2-error.exp


I'm checking this in as obvious.

I noticed today that dw2-error.exp puts the full file name of a program
into a test case name.  This is bad because it means spurious diffs when
comparing builds from different directories.

This patch fixes the test name.

Tom

2013-01-23  Tom Tromey  <tromey@redhat.com>

	* gdb.dwarf2/dw2-error.exp: Pass test name to "file" test.

Index: gdb.dwarf2/dw2-error.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/dw2-error.exp,v
retrieving revision 1.1
diff -u -r1.1 dw2-error.exp
--- gdb.dwarf2/dw2-error.exp	14 Jan 2013 20:51:48 -0000	1.1
+++ gdb.dwarf2/dw2-error.exp	23 Jan 2013 21:01:14 -0000
@@ -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 @@
 
 # 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.*"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]