diff options
author | Tom de Vries <tdevries@suse.de> | 2021-10-25 18:15:15 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-10-25 18:15:15 +0200 |
commit | 9de46719da07a439af59088d69cb4dd70c030612 (patch) | |
tree | a38c3673148a67998396ae15173f8678e374c579 /gdb | |
parent | eb5323fdf88aff59afca0a545877c4d777ff2726 (diff) | |
download | gdb-9de46719da07a439af59088d69cb4dd70c030612.zip gdb-9de46719da07a439af59088d69cb4dd70c030612.tar.gz gdb-9de46719da07a439af59088d69cb4dd70c030612.tar.bz2 |
[gdb/testsuite] Fix duplicate in gdb.mi/mi-var-cp.exp
With test-case gdb.mi/mi-var-cp.exp I run into this duplicate:
...
PASS: gdb.mi/mi-var-cp.exp: run to mi-var-cp.cc:104 (set breakpoint)
PASS: gdb.mi/mi-var-cp.exp: create varobj for s
PASS: gdb.mi/mi-var-cp.exp: create varobj for s
DUPLICATE: gdb.mi/mi-var-cp.exp: create varobj for s
...
This is due to a duplicate test name here:
...
$ cat -n gdb/testsuite/gdb.mi/mi-var-cp.cc
...
100 int reference_to_struct ()
101 {
102 /*: BEGIN: reference_to_struct :*/
103 S s = {7, 8};
104 S& r = s;
105 /*:
106 mi_create_varobj S s "create varobj for s"
107 mi_create_varobj R r "create varobj for s"
...
Fix this by using "create varobj for r" instead.
Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-cp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-cp.cc b/gdb/testsuite/gdb.mi/mi-var-cp.cc index 43323c4..0d4cd7b 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cp.cc +++ b/gdb/testsuite/gdb.mi/mi-var-cp.cc @@ -104,7 +104,7 @@ int reference_to_struct () S& r = s; /*: mi_create_varobj S s "create varobj for s" - mi_create_varobj R r "create varobj for s" + mi_create_varobj R r "create varobj for r" mi_gdb_test "-var-show-attributes S" \ "\\^done,attr=\"noneditable\"" \ "check attributes of S" |