From 02baa133856849a03aabb10c5fcb824f7b3996e1 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 18 Jan 2021 17:01:11 +0000 Subject: [PATCH] gdb/testsuite: remove actual addresses from some test names 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 | 5 +++++ gdb/testsuite/gdb.fortran/array-slices.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 49623b59acc..defaeb20c2b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-01-18 Andrew Burgess + + * gdb.fortran/array-slices.exp (run_test): Avoid including + addresses in test names. + 2021-01-15 Tom de Vries PR testsuite/26997 diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp index 45753d9baea..f9671ec1f00 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -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 -- 2.30.2