diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-30 19:07:48 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-30 19:07:48 +0200 |
commit | 85d74f293624dec19180d817436818567dc8f9b3 (patch) | |
tree | f7f9982baa98ee638e0218e23624de9430d6fcfb | |
parent | e46da7ec1bd9d39e28a86e8d6c522a6ff7510a76 (diff) | |
download | gdb-85d74f293624dec19180d817436818567dc8f9b3.zip gdb-85d74f293624dec19180d817436818567dc8f9b3.tar.gz gdb-85d74f293624dec19180d817436818567dc8f9b3.tar.bz2 |
[gdb/testsuite] Fix DUPLICATE in gdb.base/cvexpr.exp
Fix:
...
DUPLICATE: gdb.base/cvexpr.exp: ptype int * restrict
...
using with_test_prefix.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.base/cvexpr.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/cvexpr.exp b/gdb/testsuite/gdb.base/cvexpr.exp index c434c11..33ae1be 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__" +} |