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] testsuite: python: name the test


Hi,

this patch fixes gdb.sum:

 PASS: gdb.python/py-value.exp: greater or equal, None
-PASS: gdb.python/py-value.exp: python
-ok=False
-for file in gdb.objfiles():
-  if 'py-value' in file.filename:
-    ok=True
-print ok
-end
+PASS: gdb.python/py-value.exp: py-value in file.filename
 PASS: gdb.python/py-value.exp: python print gdb.objfiles()[0].pretty_printers

I do not think newlines should even be present in a test name.

Checked in (not sure about the specific name but I do not think it matters).


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2011-04/msg00149.html

--- src/gdb/testsuite/ChangeLog	2011/04/24 08:02:20	1.2676
+++ src/gdb/testsuite/ChangeLog	2011/04/24 09:04:38	1.2677
@@ -1,5 +1,10 @@
 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
+	* gdb.python/py-value.exp (test_objfiles): Name the first test
+	`py-value in file.filename'.
+
+2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
 	* gdb.base/solib-disc.exp: Set gdbserver_reconnect_p.
 	* lib/gdb.exp (gdb_init): Clear gdbserver_reconnect_p.
 	* lib/gdbserver-support.exp (gdbserver_start): Add `--once' if
--- src/gdb/testsuite/gdb.python/py-value.exp	2011/01/01 15:33:49	1.19
+++ src/gdb/testsuite/gdb.python/py-value.exp	2011/04/24 09:04:38	1.20
@@ -283,7 +283,8 @@
 
 # A few objfile tests.
 proc test_objfiles {} {
-    gdb_test "python\nok=False\nfor file in gdb.objfiles():\n  if 'py-value' in file.filename:\n    ok=True\nprint ok\nend" "True"
+    gdb_test "python\nok=False\nfor file in gdb.objfiles():\n  if 'py-value' in file.filename:\n    ok=True\nprint ok\nend" "True" \
+	     "py-value in file.filename"
 
     gdb_test "python print gdb.objfiles()\[0\].pretty_printers" "\\\[\\\]"
 


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