This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Fix gdb.cp/namespace-enum.exp compilation [Re: Make DW_TAG_enumerator's consistent, regardless of containing scope]
On Tue, 11 Oct 2011 20:27:33 +0200, Sterling Augustine wrote:
> gdb/ChangeLog
> 2011-10-07 Sterling Augustine <saugustine@google.com>
>
> * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
> logic.
>
> gdb/testsuite/gdb.cp/ChangeLog
> 2011-10-10 Sterling Augustine <saugustine@google.com>
>
> * gdb.cp/Makefile.in: Add namespace-enum test.
> * gdb.cp/namespace-enum.exp: New file.
> * gdb.cp/namespace-enum.c: New file.
> * gdb.cp/namespace-enum-main.c: New file.
+Running gdb/testsuite/gdb.cp/namespace-enum.exp ...
+ERROR: (gdb/testsuite.unix.-m32/gdb.cp/namespace-enum) No such file or directory
+UNRESOLVED: gdb.cp/namespace-enum.exp: print foo::B::B_B
+FAIL: gdb.cp/namespace-enum.exp: print foo::B_B
+FAIL: gdb.cp/namespace-enum.exp: print A_A
There is a bit problem in the current testsuite framework some functions expect
the subdirectory prefix and some do not.
Checked in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2011-10/msg00098.html
--- src/gdb/testsuite/ChangeLog 2011/10/11 19:19:08 1.2893
+++ src/gdb/testsuite/ChangeLog 2011/10/12 09:19:41 1.2894
@@ -1,3 +1,9 @@
+2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.cp/namespace-enum.exp (executable): New variable.
+ (binfile): Use ${objdir}/${subdir}/ prefix.
+ Use ${executable} for clean_restart.
+
2011-10-11 Sterling Augustine <saugustine@google.com>
* gdb.cp/Makefile.in: Add namespace-enum test.
--- src/gdb/testsuite/gdb.cp/namespace-enum.exp 2011/10/11 19:19:08 1.1
+++ src/gdb/testsuite/gdb.cp/namespace-enum.exp 2011/10/12 09:19:42 1.2
@@ -18,7 +18,8 @@
set objfile0 ${testfile}.o
set srcfile1 ${testfile}-main.cc
set objfile1 ${testfile}-main.o
-set binfile ${testfile}
+set executable ${testfile}
+set binfile ${objdir}/${subdir}/${executable}
if { [gdb_compile "$srcdir/$subdir/$srcfile0" "$objdir/$subdir/$objfile0" object {debug c++}] != "" } {
untested namespace-enum.exp
@@ -35,7 +36,7 @@
return -1
}
-clean_restart ${binfile}
+clean_restart ${executable}
gdb_test "print foo::B::B_B" "`foo::B' is not defined as an aggregate type."
gdb_test "print foo::B_B" "foo::B_B"
gdb_test "print A_A" "A_A"