Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Keven Boell <keven.boell@linux.intel.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: "Agovic, Sanimir" <sanimir.agovic@intel.com>,
	 "gdb@sourceware.org" <gdb@sourceware.org>,
	"Boell, Keven" <keven.boell@intel.com>
Subject: Re: Variable Length Arrays (VLA) proposal
Date: Wed, 07 Aug 2013 05:25:00 -0000	[thread overview]
Message-ID: <5201DA2C.7070802@linux.intel.com> (raw)
In-Reply-To: <20130804193323.GB31353@host2.jankratochvil.net>

Thanks for feedback.

On 04.08.2013 21:33, Jan Kratochvil wrote:
> On Thu, 04 Jul 2013 14:32:07 +0200, Keven Boell wrote:
>> We've created some tests for the VLA features in Fortran and C in
>> advance to test our future implementation against it. We used/split
>> some of your tests from archer-jankratochvil-vla and added some more
>> to cover more VLA use-cases, we want to fix/enable in GDB. Maybe you
>> can have a look at them to see if we agree on the feature set in
>> general, which will be available to the user afterwards.
>>
>> You can find them in our github repository (see the last few commits):
>> https://github.com/ChristophTWeinmann/GDB/tree/vla-testbase
>
> GIT URL: https://github.com/ChristophTWeinmann/GDB.git
>
>> The tests are covering only Fortran and C at the moment.
>
> Some of the files need CRLF->LF conversion.
Done.

>
>
>> gdb/testsuite/gdb.base/vla-datatypes.exp
>> gdb/testsuite/gdb.base/vla-multi.exp
>> gdb/testsuite/gdb.base/vla-ptr.exp
>> gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp
>> gdb/testsuite/gdb.fortran/vla-datatypes.exp
>
> type = long [5]
> (gdb) FAIL: gdb.base/vla-datatypes.exp: ptype long_vla
>
> Expected "long int [5]", I use gcc-4.8.1-5.fc20.x86_64.
> Such minor differences for different compilers are OK and common in GDB
> testsuite.
>
I've extended the regex to catch these cases.

>
>> gdb/testsuite/gdb.fortran/vla-func.exp
>> gdb/testsuite/gdb.fortran/vla-ptype-sub.exp
>> gdb/testsuite/gdb.fortran/vla-ptype.exp
>
>
>> gdb/testsuite/gdb.fortran/vla-type.exp
>
> archer-jankratochvil-vla has some FAILs here for more compilated types, that
> is a known bug of archer-jankratochvil-vla.
>
>
> gdb.fortran/vla-value.exp
>
> Why isn't prepare_for_testing used here?
You're right, there is no reason for not having prepare_for_testing.

>
>
> gdb.fortran/vla.f90
>
> Missing copyright header.
Done.

>
>
> I did not check it but I guess these testcases / expect strings work only with
> gfortran.  If you are interested it would be sure great if they worked also
> with iFort.
I've also checked them with ifort and it worked. However, there are some 
more fails but not related to the expect strings.

>
>
> In general expect strings in testcases "\\$\\d+ = ..." are commonly simplified
> to " = ..." (start of expect strings are not anchored by ^ even in gdb_test).
> But it is up to the submitter, "\\$\\d+ = ..." is also fine.
>
> In general 'untested' call is not needed after failed prepare_for_testing.
> The same applies to failed 'runto MAIN__'.
>
Done.

>
> The testcases are pre-approved for check-in.  But you will also need to write
> stub (just "*: New files." for everything) ChangeLog entry and post it to
> gdb-patches.  And if you like to check them in before the real VLA
> implementation they would need KFAILs for everything (IMO not worth the work
> to check in the testcases before the implementation).
I agree, this doesn't make too much sense. We'll submit the tests as 
soon as we have the VLA implementation ready.

Thanks,
Keven


  reply	other threads:[~2013-08-07  5:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28 13:03 Agovic, Sanimir
2013-06-28 15:40 ` Chris January
2013-07-01  1:55   ` Joel Brobecker
2013-07-01  8:01     ` Chris January
2013-07-01 15:32   ` Agovic, Sanimir
2013-07-04  8:18   ` Agovic, Sanimir
2013-07-04  9:13     ` Chris January
2013-07-04 11:49       ` Agovic, Sanimir
2013-07-04 16:55         ` Chris January
2013-07-26 11:44           ` Agovic, Sanimir
     [not found]     ` <1372928011.2796.13.camel@gumtree>
2013-07-04 10:00       ` Chris January
2013-07-02 13:37 ` Jan Kratochvil
2013-07-02 19:21   ` Jan Kratochvil
2013-07-02 22:22     ` Joel Brobecker
2013-07-04 12:32   ` Keven Boell
2013-08-04 19:33     ` Jan Kratochvil
2013-08-07  5:25       ` Keven Boell [this message]
2013-08-04 19:02 ` Jan Kratochvil

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=5201DA2C.7070802@linux.intel.com \
    --to=keven.boell@linux.intel.com \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=keven.boell@intel.com \
    --cc=sanimir.agovic@intel.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