mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-01 21:52:12 +01:00
0e4c900252
Previously, this used the DeleteFilesOnShutdown class and a shutdown hook, which would delete the files only after shutdown. However, the shutdown handler would be re-added for every testcase, potentially leading to a lot of threads trying to delete the same files. This uses an alternative: Just keep a list of files to delete inside the testcase and use an @After handler to delete the files directly after each usecase.