Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] testsuite: gdb.pascal/gdb11492.exp ERROR: Process no longer  exists
@ 2010-04-26 15:08 Jan Kratochvil
  2010-04-26 15:15 ` Pierre Muller
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kratochvil @ 2010-04-26 15:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Pierre Muller

Hi,

getting
	Running ./gdb.pascal/gdb11492.exp ...
	ERROR: Process no longer exists
	ERROR: Process no longer exists
	ERROR: Process no longer exists
expect-5.43.0-19.fc12.x86_64
dejagnu-1.4.4-17.fc12.noarch

while I do not understand the reasons I am used to write testcases this way
and it also fixes this case.


Thanks,
Jan


gdb/testsuite/
2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.pascal/gdb11492.exp (print integer_array, print /d char_array)
	(print /x char_array): Escape curly brackets.

--- a/gdb/testsuite/gdb.pascal/gdb11492.exp
+++ b/gdb/testsuite/gdb.pascal/gdb11492.exp
@@ -46,12 +46,12 @@ if { [gdb_start_cmd] < 0 } {
 gdb_test "" ".* at .*${srcfile}.*" "start"
 gdb_test "continue" ""
 
-gdb_test "print integer_array" " = {50, 51, 52, 53, 54, 55, 56, 57}" 
+gdb_test "print integer_array" { = \{50, 51, 52, 53, 54, 55, 56, 57\}}
 gdb_test "print /s integer_array" " = '23456789'" 
 
 gdb_test "print char_array" " = '23456789'" 
-gdb_test "print /d char_array" " = {50, 51, 52, 53, 54, 55, 56, 57}" 
-gdb_test "print /x char_array" " = {0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39}" 
+gdb_test "print /d char_array" { = \{50, 51, 52, 53, 54, 55, 56, 57\}}
+gdb_test "print /x char_array" { = \{0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39\}}
 # Use next two times to avoid GPC line numbering problem
 gdb_test "next" ""
 gdb_test "next" ""


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

* RE: [patch] testsuite: gdb.pascal/gdb11492.exp ERROR: Process no longer  exists
  2010-04-26 15:08 [patch] testsuite: gdb.pascal/gdb11492.exp ERROR: Process no longer exists Jan Kratochvil
@ 2010-04-26 15:15 ` Pierre Muller
  2010-04-26 15:50   ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Muller @ 2010-04-26 15:15 UTC (permalink / raw)
  To: 'Jan Kratochvil', gdb-patches; +Cc: 'Pierre Muller'



> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Jan Kratochvil
> Envoyé : Monday, April 26, 2010 5:08 PM
> À : gdb-patches@sourceware.org
> Cc : Pierre Muller
> Objet : [patch] testsuite: gdb.pascal/gdb11492.exp ERROR: Process no
> longer exists
> 
> Hi,
> 
> getting
> 	Running ./gdb.pascal/gdb11492.exp ...
> 	ERROR: Process no longer exists
> 	ERROR: Process no longer exists
> 	ERROR: Process no longer exists
> expect-5.43.0-19.fc12.x86_64
> dejagnu-1.4.4-17.fc12.noarch

  I am not getting this error on Cygwin,
but I was able to reproduce the problem on gcc16.
 
> while I do not understand the reasons I am used to write testcases this
> way
> and it also fixes this case.

Approved,
thanks for finding and fixing this.

Pierre
Pascal language support maintainer for GDB



 
> Thanks,
> Jan
> 
> 
> gdb/testsuite/
> 2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* gdb.pascal/gdb11492.exp (print integer_array, print /d
> char_array)
> 	(print /x char_array): Escape curly brackets.
> 
> --- a/gdb/testsuite/gdb.pascal/gdb11492.exp
> +++ b/gdb/testsuite/gdb.pascal/gdb11492.exp
> @@ -46,12 +46,12 @@ if { [gdb_start_cmd] < 0 } {
>  gdb_test "" ".* at .*${srcfile}.*" "start"
>  gdb_test "continue" ""
> 
> -gdb_test "print integer_array" " = {50, 51, 52, 53, 54, 55, 56, 57}"
> +gdb_test "print integer_array" { = \{50, 51, 52, 53, 54, 55, 56, 57\}}
>  gdb_test "print /s integer_array" " = '23456789'"
> 
>  gdb_test "print char_array" " = '23456789'"
> -gdb_test "print /d char_array" " = {50, 51, 52, 53, 54, 55, 56, 57}"
> -gdb_test "print /x char_array" " = {0x32, 0x33, 0x34, 0x35, 0x36,
> 0x37, 0x38, 0x39}"
> +gdb_test "print /d char_array" { = \{50, 51, 52, 53, 54, 55, 56, 57\}}
> +gdb_test "print /x char_array" { = \{0x32, 0x33, 0x34, 0x35, 0x36,
> 0x37, 0x38, 0x39\}}
>  # Use next two times to avoid GPC line numbering problem
>  gdb_test "next" ""
>  gdb_test "next" ""


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

* Re: [patch] testsuite: gdb.pascal/gdb11492.exp ERROR: Process no  longer  exists
  2010-04-26 15:15 ` Pierre Muller
@ 2010-04-26 15:50   ` Jan Kratochvil
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kratochvil @ 2010-04-26 15:50 UTC (permalink / raw)
  To: Pierre Muller; +Cc: gdb-patches, 'Pierre Muller'

On Mon, 26 Apr 2010 17:15:45 +0200, Pierre Muller wrote:
> Approved,

Checked-in:
	http://sourceware.org/ml/gdb-cvs/2010-04/msg00254.html


Thanks,
Jan


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

end of thread, other threads:[~2010-04-26 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26 15:08 [patch] testsuite: gdb.pascal/gdb11492.exp ERROR: Process no longer exists Jan Kratochvil
2010-04-26 15:15 ` Pierre Muller
2010-04-26 15:50   ` Jan Kratochvil

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