test: Make sure wallet.backup is created in temp path #10927

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2017_07_wallet_backup_temp_path changing 1 files +2 −2
  1. laanwj commented at 12:45 PM on July 25, 2017: member

    This assures that we don't overwrite a random file called wallet.backup that happens to be in the current directory. It also assures that the temporary file will be cleaned up.

    Noticed by Evan Klitzke, came up in discussion here: #10880 (review)

  2. test: Make sure wallet.backup is created in temp path
    This assures that we don't overwrite a random file called
    `wallet.backup` that happens to be in the current directory. It also
    assures that the temporary file will be cleaned up.
    
    Noticed by Evan Klitzke, came up in discussion here:
    https://github.com/bitcoin/bitcoin/pull/10880#discussion_r128460722
    88af227687
  3. laanwj added the label Tests on Jul 25, 2017
  4. jonasschnelli commented at 12:58 PM on July 25, 2017: contributor

    utACK 88af2276876868fc5b17a67ecaa86b219969d4c6

  5. promag commented at 1:38 PM on July 25, 2017: member

    utACK 88af227.

  6. practicalswift commented at 1:54 PM on July 25, 2017: contributor

    utACK 88af2276876868fc5b17a67ecaa86b219969d4c6

    Excerpt from the boost::filesystem::path documentation for some context:

    The append operations use operator/= to denote their semantic effect of appending the platform's preferred directory separator when needed.

  7. TheBlueMatt commented at 7:45 PM on July 25, 2017: member

    utACK

  8. MarcoFalke commented at 7:54 PM on July 25, 2017: member

    Thanks! utACK 88af2276876868fc5b17a67ecaa86b219969d4c6

  9. laanwj merged this on Jul 25, 2017
  10. laanwj closed this on Jul 25, 2017

  11. laanwj referenced this in commit 9d5e8f92a7 on Jul 25, 2017
  12. PastaPastaPasta referenced this in commit 8fdf594316 on Aug 2, 2019
  13. PastaPastaPasta referenced this in commit fa2f4da949 on Aug 6, 2019
  14. barrystyle referenced this in commit 3f2c3cc79d on Jan 22, 2020
  15. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me