It is a bit confusing that one bench run, when aborted, could leave behind temp files in the current working directory. It is similarly confusing to delete those files in the next run of bench.
Fix all issues by using BasicTestingSetup
, which provides a proper temp folder to use and also cleans up after itself.
Can be tested via:
0( echo 'my file content' > streams_tmp ) && ls streams_tmp && ./bld-cmake/bin/bench_bitcoin --filter=FindByte && ls streams_tmp
Previously the file would be deleted, now it is kept.