gdb/testsuite: remove actual addresses from some test names
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 18 Jan 2021 17:01:11 +0000 (17:01 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 18 Jan 2021 17:06:12 +0000 (17:06 +0000)
After commit:

  commit 10f92414d6d4a5f8eb8cbb2bf39ca86c1f9c1da5
  Date:   Fri Jan 15 12:14:45 2021 +0100

      [gdb/testsuite] Fix gdb.fortran/array-slices.exp with -m32

Some test names now contain the addresses of variables from the
inferior.  When running the test in different directories I'm seeing
slightly different values for the addresses.  This makes comparing
test results between directories harder than it needs to be.

This commit just gives the tests a descriptive name without including
the addresses.

gdb/testsuite/ChangeLog:

* gdb.fortran/array-slices.exp (run_test): Avoid including
addresses in test names.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/array-slices.exp

index 49623b59acc728e0eb8a1e84300faabaf7de3494..defaeb20c2be480923523516b1654918517b60d5 100644 (file)
@@ -1,3 +1,8 @@
+2021-01-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.fortran/array-slices.exp (run_test): Avoid including
+       addresses in test names.
+
 2021-01-15  Tom de Vries  <tdevries@suse.de>
 
        PR testsuite/26997
index 45753d9baea70b8e8b9518e6bda2a2b4bc5ed65f..f9671ec1f0071354eae590a480fc67f192160a41 100644 (file)
@@ -209,7 +209,8 @@ proc run_test { repack } {
                                "start unknown"]
            set end_addr [get_hexadecimal_valueof \
                              "$start_addr + sizeof (${full_var_name})" \
-                             "end unknown"]
+                             "end unknown" \
+                             "get end address of ${full_var_name}"]
 
            # The Fortran compiler can choose to either send a descriptor that
            # describes the array slice to the subroutine, or it can repack the