+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.
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
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"