This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH V2 6/7] Fortran, testsuite: Fix duplicate testcase name.


Bernhard Heckel <bernhard.heckel@intel.com> writes:

>>>   gdb_test "ptype fivedynarr(2)" \
>>>            [multi_line "type = Type five" \
>>>                        "\\s+Type one :: tone" \
>>> -                     "End Type five" ]
>>> +                     "End Type five" ] \
>>> +         "ptype fivedynarr(2), not allocated"
>> I don't understand why do we need this change.  Looks the element "tone"
>> of type "five" is not allocated, but type "five" is.
> I found a duplicate testname in the same file, therefore I just added
> a post-fix to the testname.
> This test above handles not allocated elements of an array.
> Specific here, the element of an allocatable array is a struct which
> has the allocatable variable "tone" which is not allocated yet.
> There is not change to the test itself, only the testname

Yes, I know this only changes the test name, but that is confusing.  As
I said, variable "tone" is not allocated yet, but variable of type
"five" is.  This test is printing the type "five".  Probably you can
rename the test to "ptype fivedynarr(2), tone is not allocated".

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]