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]

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


On 17/05/2016 14:53, Bernhard Heckel wrote:
On 13/05/2016 16:19, Yao Qi wrote:
Bernhard Heckel <bernhard.heckel@intel.com> writes:

@@ -137,7 +137,8 @@ gdb_test "next" ""
  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 no change to the test itself, only the testname
  gdb_test "ptype fivedynarr(2)%tone" \
           [multi_line "type = Type one" \
                       "    $int :: ivla\\(<not allocated>\\)" \

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

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