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]

[obv] Cleanup of gdb.base/macscp.exp


Hi,

just a minor cleanup, checked-in.

(The 4 FAILs were there even before.)


Regards,
Jan


http://sourceware.org/ml/gdb-cvs/2009-02/msg00101.html

2009-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.base/macscp.exp (objfile): Move it to ${objdir}/${subdir}/.
	(list_and_check_macro): Use more specific test name.
	(next to definition): Make the test names unique.

--- src/gdb/testsuite/gdb.base/macscp.exp	2009/01/03 05:58:03	1.19
+++ src/gdb/testsuite/gdb.base/macscp.exp	2009/02/18 22:24:37	1.20
@@ -23,7 +23,7 @@
 
 set srcfile macscp1.c
 set testfile "macscp"
-set objfile "macscp.o"
+set objfile ${objdir}/${subdir}/${testfile}.o
 set binfile ${objdir}/${subdir}/${testfile}
 
 set options { debug }
@@ -188,12 +188,12 @@
     }
     return 0
 }
-    
+
 
 # List the function FUNC, and then show the definition of MACRO,
 # expecting the result EXPECTED.
 proc list_and_check_macro {func macro expected} {
-    gdb_test "list $func" ".*${func}.*"
+    gdb_test "list $func" ".*${func}.*" "list $func for $macro"
     return [check_macro $macro $expected "after `list $func'"]
 }
 
@@ -423,7 +423,7 @@
     "No symbol \"MACRO_TO_EXPAND\" in current context\." \
     "print expression with macro before define."
 
-gdb_test "next" "foo = 1;" "next to definition"
+gdb_test "next" "foo = 1;" "next to definition 1"
 
 gdb_test "print MACRO_TO_EXPAND" \
     " = 0" \
@@ -445,7 +445,7 @@
     " = 0" \
     "print expression with macro after removing override"
 
-gdb_test "next" "foo = 2;" "next to definition"
+gdb_test "next" "foo = 2;" "next to definition 2"
 
 gdb_test "print MACRO_TO_EXPAND" \
     "No symbol \"MACRO_TO_EXPAND\" in current context\." \


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