Move GetTempPath() to testutil #7667

pull musalbas wants to merge 2 commits into bitcoin:master from musalbas:patch-gettemppath changing 7 files +53 −25
  1. musalbas commented at 1:13 PM on March 11, 2016: contributor

    Addresses #6702 and #6701.

    This pull request creates a new source file for test utils, and moves GetTempPath() from util to testutil.

    This is because per the above issues, GetTempPath() is insecure and has unchecked error conditions, making it unsuitable for use in production code. GetTempPath() is only used in the unit tests and not used anywhere in the main code, so it would be a good idea to move this to the test suite so that no one tries to use this in the future and it's not mixed with production code.

  2. Add a source file for unit test utils. 393b22eacb
  3. jonasschnelli commented at 1:17 PM on March 11, 2016: contributor

    Nice! utACK.

  4. jonasschnelli added the label Tests on Mar 11, 2016
  5. Move GetTempPath() to testutil. 2fdaa25529
  6. musalbas force-pushed on Mar 11, 2016
  7. musalbas commented at 3:30 PM on March 11, 2016: contributor

    Fixed Windows build error. The build passes now.

  8. paveljanik commented at 7:13 PM on March 11, 2016: contributor

    ACK

  9. MarcoFalke commented at 7:22 PM on March 11, 2016: member

    utACK 2fdaa25

  10. laanwj commented at 10:18 AM on March 14, 2016: member

    Yes, makes sense, utACK 2fdaa25

  11. laanwj merged this on Mar 14, 2016
  12. laanwj closed this on Mar 14, 2016

  13. laanwj referenced this in commit 56d2c4e0fe on Mar 14, 2016
  14. codablock referenced this in commit 605143f583 on Sep 16, 2017
  15. codablock referenced this in commit 3bc78faa55 on Sep 19, 2017
  16. codablock referenced this in commit 255cd26231 on Dec 9, 2017
  17. codablock referenced this in commit 8be396a3b8 on Dec 19, 2017
  18. zkbot referenced this in commit 40d5f0aa57 on Oct 26, 2020
  19. MarcoFalke 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-14 18:15 UTC

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