Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb: tests: skip call-ar-st when noinferiorio
@ 2010-03-18  7:17 Mike Frysinger
  2010-03-18 12:39 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-03-18  7:17 UTC (permalink / raw)
  To: gdb-patches; +Cc: Jie Zhang

From: Jie Zhang <jie@codesourcery.com>

If the target cannot do input/output, skip the call-ar-st test.  For
example, testing via rsh/gdbserver cannot support this since the stdio
is not accessible via the host gdb.

Signed-off-by: Jie Zhang <jie@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
2010-03-18  Jie Zhang  <jie@codesourcery.com>

	* gdb.base/call-ar-st.exp: Return if target has noinferiorio set.

 gdb/testsuite/gdb.base/call-ar-st.exp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gdb/testsuite/gdb.base/call-ar-st.exp b/gdb/testsuite/gdb.base/call-ar-st.exp
index 40ed86c..81cc419 100644
--- a/gdb/testsuite/gdb.base/call-ar-st.exp
+++ b/gdb/testsuite/gdb.base/call-ar-st.exp
@@ -46,6 +46,11 @@ if [get_compiler_info ${binfile}] {
     return -1;
 }
 
+if [target_info exists gdb,noinferiorio] {
+    untested "skipping call-ar-st.exp because of noinferiorio."
+    return -1
+}
+
 # Some targets can't call functions, so don't even bother with this
 # test.
 if [target_info exists gdb,cannot_call_functions] {
-- 
1.7.0.2


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

* Re: [PATCH] gdb: tests: skip call-ar-st when noinferiorio
  2010-03-18  7:17 [PATCH] gdb: tests: skip call-ar-st when noinferiorio Mike Frysinger
@ 2010-03-18 12:39 ` Pedro Alves
  2010-03-19 21:06   ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2010-03-18 12:39 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mike Frysinger, Jie Zhang

On Thursday 18 March 2010 07:17:00, Mike Frysinger wrote:
> From: Jie Zhang <jie@codesourcery.com>
> 
> If the target cannot do input/output, skip the call-ar-st test.  For
> example, testing via rsh/gdbserver cannot support this since the stdio
> is not accessible via the host gdb.

There's a bunch of gdb_skip_stdio_test checks in the test.
Why is that not working?

> 
> Signed-off-by: Jie Zhang <jie@codesourcery.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> 2010-03-18  Jie Zhang  <jie@codesourcery.com>
> 
> 	* gdb.base/call-ar-st.exp: Return if target has noinferiorio set.
> 
>  gdb/testsuite/gdb.base/call-ar-st.exp |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/gdb/testsuite/gdb.base/call-ar-st.exp b/gdb/testsuite/gdb.base/call-ar-st.exp
> index 40ed86c..81cc419 100644
> --- a/gdb/testsuite/gdb.base/call-ar-st.exp
> +++ b/gdb/testsuite/gdb.base/call-ar-st.exp
> @@ -46,6 +46,11 @@ if [get_compiler_info ${binfile}] {
>      return -1;
>  }
>  
> +if [target_info exists gdb,noinferiorio] {
> +    untested "skipping call-ar-st.exp because of noinferiorio."
> +    return -1
> +}
> +
>  # Some targets can't call functions, so don't even bother with this
>  # test.
>  if [target_info exists gdb,cannot_call_functions] {
> 


-- 
Pedro Alves


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

* Re: [PATCH] gdb: tests: skip call-ar-st when noinferiorio
  2010-03-18 12:39 ` Pedro Alves
@ 2010-03-19 21:06   ` Mike Frysinger
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-03-19 21:06 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches, Jie Zhang

[-- Attachment #1: Type: Text/Plain, Size: 617 bytes --]

On Thursday 18 March 2010 08:39:36 Pedro Alves wrote:
> On Thursday 18 March 2010 07:17:00, Mike Frysinger wrote:
> > From: Jie Zhang <jie@codesourcery.com>
> > 
> > If the target cannot do input/output, skip the call-ar-st test.  For
> > example, testing via rsh/gdbserver cannot support this since the stdio
> > is not accessible via the host gdb.
> 
> There's a bunch of gdb_skip_stdio_test checks in the test.
> Why is that not working?

it is working.  i compared the wrong set of test results and thought this was 
still necessary.  sorry for the noise ... time to go `rm -rf` some logs ;).
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2010-03-19 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18  7:17 [PATCH] gdb: tests: skip call-ar-st when noinferiorio Mike Frysinger
2010-03-18 12:39 ` Pedro Alves
2010-03-19 21:06   ` Mike Frysinger

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