Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com, Jerome Guitton <guitton@act-europe.fr>
Subject: Re: [patch] Test scalar call/return/finish test - call-sc
Date: Sat, 24 Apr 2004 18:20:00 -0000	[thread overview]
Message-ID: <20040424182018.GN2811@gnat.com> (raw)
In-Reply-To: <4089AD34.90607@gnu.org>

> Joel, Jerome, AIX should have zero call-sc and structs failures (as 
> there is for PPC/elf).
> 
> committed,
> Andrew

> 2004-04-23  Andrew Cagney  <cagney@redhat.com>
> 
> 	* gdb.base/call-sc.exp: New test of scalar call/return values.
> 	* gdb.base/call-sc.c: Ditto.

I got a few failures...

                        === gdb Summary ===
        
        # of expected passes            141
        # of unexpected failures        12

The following FAILs seem to be caused by a problem in the test itself rather
than GDB.

        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-tc cha
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-ts sho
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-ti i
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-tl lo
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-tll lo
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-tf float
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-td double
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-tld lo
        FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-te e

Let's look at the first one, for instance:

        (gdb) ptype tc
        type = char
        (gdb) PASS: gdb.base/call-sc.exp: ptype; call-sc-tc (cha)
        ptype foo
        type = char
        (gdb) FAIL: gdb.base/call-sc.exp: ptype foo; call-sc-tc cha

If I understand your call-sc.exp well, then the test gets the expected
answer for the second test from the first one. But as you see from the
PASS message, it only seems to have picked up the first 3 characters
of the output from the first query. Looks like there is something weird
going on...

The following ones seem to be bona fide problems:

        FAIL: gdb.base/call-sc.exp: value foo returned; return call-sc-tc
        FAIL: gdb.base/call-sc.exp: value foo returned; return call-sc-ts

        p/c L
        $3 = 90 'Z'
        (gdb) PASS: gdb.base/call-sc.exp: zed L for return; return call-sc-tc
        return foo    
        Make fun return now? (y or n) y
        #0  main () at gdb.base/call-sc.c:78
        78            L = fun ();
        (gdb) next
        79            zed ();
        (gdb) PASS: gdb.base/call-sc.exp: return foo; return call-sc-tc
        p/c L
        $4 = 90 'Z'
        (gdb) FAIL: gdb.base/call-sc.exp: value foo returned; return call-sc-tc

I think we expected L to be set to '1'.

And last but not least, this FAIL also seems to be a genuine problem:

        FAIL: gdb.base/call-sc.exp: p/c L; call call-sc-tf

The log files contain the following output:

        p/c fun()
        $1 = 49 '1'
        (gdb) PASS: gdb.base/call-sc.exp: p/c fun(); call call-sc-tf
        call Fun(foo)
        (gdb) PASS: gdb.base/call-sc.exp: call Fun(foo); call call-sc-tf
        p/c L 
        $2 = 0 '\0'
        (gdb) FAIL: gdb.base/call-sc.exp: p/c L; call call-sc-tf

The first "p/c fun()" proves that foo is correctly equal to '1', so
after Fun(foo) is called, L should be set to '1' too...

-- 
Joel


  reply	other threads:[~2004-04-24 18:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24  0:03 Andrew Cagney
2004-04-24 18:20 ` Joel Brobecker [this message]
2004-04-25 11:44   ` Mark Kettenis
2004-04-25 14:27     ` Daniel Jacobowitz
2004-04-26  0:53     ` Joel Brobecker
2004-04-28  0:16       ` Mark Kettenis
2004-04-28 15:49         ` Andrew Cagney

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=20040424182018.GN2811@gnat.com \
    --to=brobecker@gnat.com \
    --cc=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=guitton@act-europe.fr \
    /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