testsuite: Handle --save-temps in schedule-cleanups
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 06:34:49 +0000 (06:34 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 06:34:49 +0000 (06:34 +0000)
commitce9b5c09a644ffd213cb00f378dfe5cf5a9dd7b8
tree2120fdb5b788f9bb13ecf76292cd58e8d171a557
parentaedd04caa945260ea77fd22f29b77292f7dba72e
testsuite: Handle --save-temps in schedule-cleanups

Some tests use --save-temps, but schedule-cleanups strictly matches
-save-temps, so we leave many temporary files after validation.
Instead of fixing every offending testcase, it's simpler and
future-proof to make schedule-cleanups handle both --save-temps and
-save-temps.

2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* lib/gcc-dg.exp (schedule-cleanups): Accept --save-temps.
gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-dg.exp