Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [committed][gdb/testsuite] Fix duplicate test-names in gdb.fortran
Date: Tue, 12 May 2020 10:54:04 +0200	[thread overview]
Message-ID: <20200512085403.GA29715@delia> (raw)

Hi,

In gdb.fortran we have:
...
DUPLICATE: gdb.fortran/complex.exp: whatis $
DUPLICATE: gdb.fortran/complex.exp: whatis $
DUPLICATE: gdb.fortran/complex.exp: whatis $
DUPLICATE: gdb.fortran/complex.exp: whatis $
...

Fix this by using with_test_prefix.

Tested on x86_64-linux.

Committed to trunk.

Thanks,
- Tom

[gdb/testsuite] Fix duplicate test-names in gdb.fortran

gdb/testsuite/ChangeLog:

2020-05-12  Tom de Vries  <tdevries@suse.de>

	* gdb.fortran/complex.exp: Use with_test_prefix.

---
 gdb/testsuite/gdb.fortran/complex.exp | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/gdb/testsuite/gdb.fortran/complex.exp b/gdb/testsuite/gdb.fortran/complex.exp
index a88e553e58..f1e754e163 100644
--- a/gdb/testsuite/gdb.fortran/complex.exp
+++ b/gdb/testsuite/gdb.fortran/complex.exp
@@ -38,21 +38,29 @@ gdb_test "print c16" " = \\(-874,19\\)"
 
 gdb_test "whatis c" "type = complex\\(kind=4\\)"
 gdb_test "print \$_creal (c)" " = 1000"
-gdb_test "whatis \$" " = real"
+with_test_prefix "c" {
+    gdb_test "whatis \$" " = real"
+}
 
 gdb_test "whatis c4" "type = complex\\(kind=4\\)"
 gdb_test "print \$_creal (c4)" " = 1000"
-gdb_test "whatis \$" " = real"
-
+with_test_prefix "c4" {
+    gdb_test "whatis \$" " = real"
+}
 gdb_test "whatis c8" "type = complex\\(kind=8\\)"
 gdb_test "print \$_creal (c8)" " = 321"
-gdb_test "whatis \$" " = real\\*8"
-
+with_test_prefix "c8" {
+    gdb_test "whatis \$" " = real\\*8"
+}
 gdb_test "whatis dc" "type = complex\\(kind=8\\)"
 gdb_test "print \$_creal (dc)" " = 321"
-gdb_test "whatis \$" " = real\\*8"
+with_test_prefix "dc" {
+    gdb_test "whatis \$" " = real\\*8"
+}
 
 gdb_test "whatis c16" "type = complex\\(kind=16\\)"
 gdb_test "print \$_creal (c16)" " = -874"
-gdb_test "whatis \$" " = real\\*16"
+with_test_prefix "c16" {
+    gdb_test "whatis \$" " = real\\*16"
+}
 


                 reply	other threads:[~2020-05-12  8:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200512085403.GA29715@delia \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox