* [committed][gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp
@ 2021-09-30 17:09 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-09-30 17:09 UTC (permalink / raw)
To: gdb-patches
Hi,
Fix:
...
DUPLICATE: gdb.base/cvexpr.exp: ptype int * restrict
...
using with_test_prefix.
Tested on x86_64-linux.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp
---
gdb/testsuite/gdb.base/cvexpr.exp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gdb/testsuite/gdb.base/cvexpr.exp b/gdb/testsuite/gdb.base/cvexpr.exp
index c434c11f45f..33ae1be0322 100644
--- a/gdb/testsuite/gdb.base/cvexpr.exp
+++ b/gdb/testsuite/gdb.base/cvexpr.exp
@@ -514,7 +514,9 @@ gdb_test "ptype int * restrict" "type = int \\* restrict"
# C++ does not have "restrict".
gdb_test_no_output "set lang c++"
-gdb_test "ptype int * restrict" "A syntax error in expression.*"
+with_test_prefix c++ {
+ gdb_test "ptype int * restrict" "A syntax error in expression.*"
-# There is a GCC extension for __restrict__, though.
-gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
+ # There is a GCC extension for __restrict__, though.
+ gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-30 17:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-30 17:09 [committed][gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).