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.
" 22," \
" 23" \
" }" \
- "}" ]
+ "}" ] \
+ "print nums with print array on"
gdb_test_no_output "set print array-indexes on"
" \\\[1\\\] = 22," \
" \\\[2\\\] = 23" \
" }" \
- "}" ]
+ "}" ] \
+ "print nums with print array on, print array-indexes on"