From: Fernando Nasser <fnasser@cygnus.com>
To: Michael Snyder <msnyder@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Tweak for pthreads.exp testcase (resend)
Date: Mon, 04 Jun 2001 17:20:00 -0000 [thread overview]
Message-ID: <3B1C25C6.C0E510A2@cygnus.com> (raw)
In-Reply-To: <200106042347.QAA17176@cleaver.cygnus.com>
Michael,
Your subject line Who are you asking approval from?
The MAINTAINERS file lists:
threads (gdb.threads) Michael Snyder msnyder@redhat.com
Habits are hard to break, eh? :-)
Cheers,
Fernando
Michael Snyder wrote:
>
> OK, let's try again, this time with the actual patch instead of the file.
>
> If the "Stop with ^C" test fails, then all subsequent tests in this
> script will time out. Rather than wait for that to happen, detect
> the failure and terminate the test.
>
> 2001-06-04 Michael Snyder <msnyder@redhat.com>
>
> * gdb.threads/pthreads.exp (check_control_c): Return 0 for success,
> non-zero if control_c fails. Terminate the test on failure,
> rather than wait for 12 more tests to time out.
>
> Index: pthreads.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/pthreads.exp,v
> retrieving revision 1.5
> diff -c -3 -p -r1.5 pthreads.exp
> *** pthreads.exp 2001/05/25 01:10:20 1.5
> --- pthreads.exp 2001/06/04 23:04:21
> *************** proc check_control_c {} {
> *** 259,264 ****
> --- 259,265 ----
> }
> timeout {
> fail "$description (timeout)"
> + return 1;
> }
> }
> gdb_test "bt" ""
> *************** proc check_control_c {} {
> *** 267,272 ****
> --- 268,274 ----
> if [all_threads_running] then {
> pass "All threads running after continuing from ^C stop"
> }
> + return 0;
> }
>
> proc check_backtraces {} {
> *************** setup_xfail "alpha-*-osf*"
> *** 337,343 ****
> if [runto_main] then {
> clear_xfail "alpha-*-osf*"
> if [test_startup] then {
> ! check_control_c
> check_backtraces
> }
> }
> --- 339,348 ----
> if [runto_main] then {
> clear_xfail "alpha-*-osf*"
> if [test_startup] then {
> ! if [check_control_c] then {
> ! warning "Could not stop child with ^C; skipping rest of tests.\n"
> ! return;
> ! }
> check_backtraces
> }
> }
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
next prev parent reply other threads:[~2001-06-04 17:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-04 16:47 Michael Snyder
2001-06-04 17:20 ` Fernando Nasser [this message]
2001-06-06 11:38 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B1C25C6.C0E510A2@cygnus.com \
--to=fnasser@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox