This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH V2 6/7] Fortran, testsuite: Fix duplicate testcase name.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Bernhard Heckel <bernhard dot heckel at intel dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Mon, 23 May 2016 14:22:04 +0100
- Subject: Re: [PATCH V2 6/7] Fortran, testsuite: Fix duplicate testcase name.
- Authentication-results: sourceware.org; auth=none
- References: <1463132086-17451-1-git-send-email-bernhard dot heckel at intel dot com> <1463132086-17451-7-git-send-email-bernhard dot heckel at intel dot com> <8660uiavlt dot fsf at gmail dot com> <573B1455 dot 4050004 at intel dot com>
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 (éå)