gdb/testsuite: Remove duplicates from gdb.base/pretty-array.exp

When I run the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/pretty-array.exp ...
    DUPLICATE: gdb.base/pretty-array.exp: print nums
    DUPLICATE: gdb.base/pretty-array.exp: print nums

Fix by giving a name to the test cases.

Tested on x86_64-linux.
This commit is contained in:
Lancelot SIX
2021-11-21 00:29:01 +00:00
parent fdc3b97899
commit 22dafa45d3

View File

@ -44,7 +44,8 @@ gdb_test "print nums" \
" 22," \ " 22," \
" 23" \ " 23" \
" }" \ " }" \
"}" ] "}" ] \
"print nums with print array on"
gdb_test_no_output "set print array-indexes on" gdb_test_no_output "set print array-indexes on"
@ -61,4 +62,5 @@ gdb_test "print nums" \
" \\\[1\\\] = 22," \ " \\\[1\\\] = 22," \
" \\\[2\\\] = 23" \ " \\\[2\\\] = 23" \
" }" \ " }" \
"}" ] "}" ] \
"print nums with print array on, print array-indexes on"