[gdb/testsuite] Clean standard_output_file dir in gdb_init
authorTom de Vries <tdevries@suse.de>
Sun, 18 Jun 2023 09:05:31 +0000 (11:05 +0200)
committerTom de Vries <tdevries@suse.de>
Sun, 18 Jun 2023 09:05:31 +0000 (11:05 +0200)
commitb7b77500dc56e5bc21473dd4f3dde2543d894557
tree5328c4054859928dcb9d1bbed992e747a063d057
parent2156c51d71dddafd43832c65972a38ed96c32fc0
[gdb/testsuite] Clean standard_output_file dir in gdb_init

In commit e2adba909e7 ("[gdb/testsuite] Clean up before compilation in
gdb.ada/call-no-debug.exp") I added some code in the test-case to remove some
files at the start of the test-case:
...
remote_file host delete [standard_output_file prog.o]
remote_file host delete [standard_output_file prog.ali]
...

Replace this with cleaning up the entire directory instead, for all
test-cases.

Tested on x86_64-linux.

Suggested-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.ada/call-no-debug.exp
gdb/testsuite/lib/gdb.exp