Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] minor fixes for python finish breakpoint testcases
@ 2011-12-29 21:51 Edjunior Barbosa Machado
  2011-12-30  3:30 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Edjunior Barbosa Machado @ 2011-12-29 21:51 UTC (permalink / raw)
  To: gdb-patches

Hi,

this patch fixes some minor issues found on these 2 new testcases. For
py-finish-breakpoint.exp, it expects the leading `.' found on ppc64's symbols
and adds the newline missing at the end of file. For py-finish-breakpoint2.exp,
it skips the tests if python support is not enabled.

BTW, py-finish-breakpoint2.exp still shows some failures on ppc64 when python
support is enabled but I still haven't figured out what is the problem.

FAIL: gdb.python/py-finish-breakpoint2.exp: check FinishBreakpoint in catch()
FAIL: gdb.python/py-finish-breakpoint2.exp: check finish BP removal
FAIL: gdb.python/py-finish-breakpoint2.exp: continue to second exception
FAIL: gdb.python/py-finish-breakpoint2.exp: set FinishBP after the exception

Thanks,
--
Edjunior

2011-12-29  Edjunior Machado  <emachado@linux.vnet.ibm.com>

	gdb/testsuite/
	* gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64. Add
	newline at end of file.
	* gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support
	is not enabled.

diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
index c7a42a2..42488ba 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
@@ -118,7 +118,8 @@ if ![runto_main] then {
 
 gdb_test "print do_nothing" "no debug info.*" "ensure that shared lib has no debug info"
 gdb_breakpoint "do_nothing" {temporary}
-gdb_test "continue" "Temporary breakpoint .*in do_nothing.*" "continue to do_nothing"
+gdb_test "continue" "Temporary breakpoint .*in \\.?do_nothing.*" \
+         "continue to do_nothing"
 
 gdb_test "python finishBP = SimpleFinishBreakpoint(gdb.newest_frame())" \
          "SimpleFinishBreakpoint init" \
@@ -262,4 +263,4 @@ if ![runto "test_exec_exit"] then {
 gdb_test_no_output "set var do_exit = 0" "switch to execve() test"
 gdb_test "python SimpleFinishBreakpoint(gdb.newest_frame())" "SimpleFinishBreakpoint init" "set FinishBP after the exec"
 gdb_test "catch exec" "Catchpoint.*\(exec\).*" "catch exec"
-gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exec"
\ No newline at end of file
+gdb_test "continue" "SimpleFinishBreakpoint out of scope.*" "catch out of scope after exec"
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
index 433d1e6..451cc90 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
@@ -38,6 +38,9 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+# Skip all tests if Python scripting is not enabled.
+if { [skip_python_tests] } { continue }
+
 if ![runto_main] then {
     fail "Cannot run to main."
     return 0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] minor fixes for python finish breakpoint testcases
  2011-12-29 21:51 [PATCH] minor fixes for python finish breakpoint testcases Edjunior Barbosa Machado
@ 2011-12-30  3:30 ` Joel Brobecker
  2011-12-30 14:35   ` Edjunior Barbosa Machado
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2011-12-30  3:30 UTC (permalink / raw)
  To: Edjunior Barbosa Machado; +Cc: gdb-patches

> 2011-12-29  Edjunior Machado  <emachado@linux.vnet.ibm.com>
> 
> 	gdb/testsuite/
> 	* gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64. Add
> 	newline at end of file.
> 	* gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support
> 	is not enabled.

Looks good to me.

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] minor fixes for python finish breakpoint testcases
  2011-12-30  3:30 ` Joel Brobecker
@ 2011-12-30 14:35   ` Edjunior Barbosa Machado
  2011-12-30 21:52     ` Edjunior Barbosa Machado
  0 siblings, 1 reply; 4+ messages in thread
From: Edjunior Barbosa Machado @ 2011-12-30 14:35 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On 12/30/2011 12:44 AM, Joel Brobecker wrote:

>> 2011-12-29  Edjunior Machado  <emachado@linux.vnet.ibm.com>
>>
>> 	gdb/testsuite/
>> 	* gdb.python/py-finish-breakpoint.exp: Add `.' prefix for ppc64. Add
>> 	newline at end of file.
>> 	* gdb.python/py-finish-breakpoint2.exp: Skip testcase if python support
>> 	is not enabled.
> 
> Looks good to me.
> 


Sorry, I haven't noticed the patch was outdated (Jan had already fixed the newline issue, for example). However, I applied a refreshed version of the patch containing the other fixes.

http://sourceware.org/ml/gdb-cvs/2011-12/msg00262.html

Thanks,
-- 
Edjunior


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] minor fixes for python finish breakpoint testcases
  2011-12-30 14:35   ` Edjunior Barbosa Machado
@ 2011-12-30 21:52     ` Edjunior Barbosa Machado
  0 siblings, 0 replies; 4+ messages in thread
From: Edjunior Barbosa Machado @ 2011-12-30 21:52 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On 12/30/2011 12:16 PM, Edjunior Barbosa Machado wrote:

> Sorry, I haven't noticed the patch was outdated (Jan had already fixed the newline issue, for example). However, I applied a refreshed version of the patch containing the other fixes.
> 
> http://sourceware.org/ml/gdb-cvs/2011-12/msg00262.html
> 
> Thanks,


Ouch, another mistake, now in the Changelog entry. I've just fixed it, removing the unnecessary line and adding the missing period at the end of the first sentence. My apologies for that.

http://sourceware.org/ml/gdb-cvs/2011-12/msg00263.html

Thanks,
-- 
Edjunior


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-30 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 21:51 [PATCH] minor fixes for python finish breakpoint testcases Edjunior Barbosa Machado
2011-12-30  3:30 ` Joel Brobecker
2011-12-30 14:35   ` Edjunior Barbosa Machado
2011-12-30 21:52     ` Edjunior Barbosa Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox