From: Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org>
To: "Potharla\, Rupesh" <Rupesh.Potharla@amd.com>,
Kevin Buettner <kevinb@redhat.com>,
Kevin Buettner via Gdb-patches <gdb-patches@sourceware.org>
Cc: "George, Jini Susan" <JiniSusan.George@amd.com>,
"Parasuraman, Hariharan" <Hariharan.Parasuraman@amd.com>,
"Sharma, Alok Kumar" <AlokKumar.Sharma@amd.com>
Subject: RE: GDB/Fortran: Support for Assumed Rank Zero.
Date: Wed, 20 Apr 2022 16:29:47 +0100 [thread overview]
Message-ID: <87pmlbrcwk.fsf@redhat.com> (raw)
In-Reply-To: <DM6PR12MB42193E343DBABB62F87E800FE7F59@DM6PR12MB4219.namprd12.prod.outlook.com>
"Potharla, Rupesh via Gdb-patches" <gdb-patches@sourceware.org> writes:
> [AMD Official Use Only]
>
>
>>On Mon, 18 Apr 2022 08:33:28 -0700
>>Kevin Buettner via Gdb-patches <gdb-patches@sourceware.org> wrote:
>>
>>> I'm also (still) wondering how to run the testsuite to use flang
>>> instead of gfortran since it'd be nice to test to see if the
>>> setup_xfail actually works. I spent just enough time looking at it
>>> last week to convince myself that GDB's testing infrastructure
>>> currently lacks the mechanisms to do this. However, I could be wrong,
>>> so if someone knows how it's done, I'd like to learn about it...
>>
>>It seems that the answer is to run the test as follows:
>>
>>make check TESTS="gdb.fortran/assumedrank.exp"
>>RUNTESTFLAGS="F90_FOR_TARGET=flang"
>>
>>(I thought that I had tried this last week.)
>>
>>When I run the above command on my Fedora 35 machine, I see:
>>
>># of expected passes 500
>># of unexpected failures 2503
>># of unresolved testcases 500
>>
> But the command should only run assumedrank.exp testcase, looks like it ran all the tests under gdb.fortran.
>
> gdb summary after running assumedrank.exp with flang:
>
> === gdb Summary ===
>
> # of expected passes 25
> # of expected failures 1
>
>>So it seems that this test doesn't work very well with flang at the moment.
>>
>>That being the case, while I'm not against adding setup_xfail for clang, it
>>doesn't seem all that useful due to the dismal results when testing against
>>flang.
>>
>
>
> if {$test_count == 1 && [test_compiler_info {clang-*}]} {
> setup_xfail "*-*-*"
> fail "compiler does not support rank 0"
> continue
> }
It is possible to call 'xfail' directly, so you could just do:
xfail "compiler does not support rank 0"
But I don't think that's correct really, xfail should be used when a
specific test is actually being run, so we'd expect to do something
like:
xfail $test_name
See gdb.ada/call_pn.exp for examples.
I wonder if really 'unsupported' would be a better choice here - the
description in the Dejagnu manual says:
UNSUPPORTED
There is no support for the tested case. This may mean that a
conditional feature of an operating system, or of a compiler, is
not implemented....
Which seems to describe this case perfectly, so:
if {$test_count == 1 && [test_compiler_info {clang-*}]} {
unsupported "compiler does not support rank 0"
continue
}
Thoughts?
Thanks,
Andrew
>
> I think failing the testcase at the iteration entry and continuing to test next case is the best way to handle these dismal results.
> Please let me know your suggestions/comments on this.
>
> Regards,
> Rupesh P
next prev parent reply other threads:[~2022-04-20 15:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-13 9:55 Potharla, Rupesh via Gdb-patches
2022-04-13 18:27 ` Kevin Buettner via Gdb-patches
2022-04-14 10:30 ` Potharla, Rupesh via Gdb-patches
2022-04-14 21:28 ` Kevin Buettner via Gdb-patches
2022-04-15 13:33 ` Potharla, Rupesh via Gdb-patches
2022-04-15 19:31 ` Kevin Buettner via Gdb-patches
2022-04-16 18:29 ` Potharla, Rupesh via Gdb-patches
2022-04-18 13:31 ` Tom Tromey
2022-04-18 15:25 ` Potharla, Rupesh via Gdb-patches
2022-04-20 15:22 ` Andrew Burgess via Gdb-patches
2022-04-20 19:08 ` Potharla, Rupesh via Gdb-patches
2022-04-22 14:38 ` Andrew Burgess via Gdb-patches
2022-04-25 6:33 ` Potharla, Rupesh via Gdb-patches
2022-04-25 8:47 ` Andrew Burgess via Gdb-patches
2022-04-18 15:33 ` Kevin Buettner via Gdb-patches
2022-04-19 17:30 ` Kevin Buettner via Gdb-patches
2022-04-20 0:29 ` Potharla, Rupesh via Gdb-patches
2022-04-20 6:32 ` Kempke, Nils-Christian via Gdb-patches
2022-04-20 15:38 ` Kevin Buettner via Gdb-patches
2022-04-20 15:29 ` Andrew Burgess via Gdb-patches [this message]
2022-04-20 19:20 ` Potharla, Rupesh via Gdb-patches
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=87pmlbrcwk.fsf@redhat.com \
--to=gdb-patches@sourceware.org \
--cc=AlokKumar.Sharma@amd.com \
--cc=Hariharan.Parasuraman@amd.com \
--cc=JiniSusan.George@amd.com \
--cc=Rupesh.Potharla@amd.com \
--cc=aburgess@redhat.com \
--cc=kevinb@redhat.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