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. laanwj cross-referenced this on Apr 28, 2016 from issue GetTempPath has unchecked error conditions by luke-jr
  15. fanquake cross-referenced this on Jun 22, 2016 from issue GetTempPath is insecure by luke-jr
  16. dagurval cross-referenced this on Apr 23, 2017 from issue Util ports by dagurval
  17. codablock referenced this in commit 605143f583 on Sep 16, 2017
  18. codablock referenced this in commit 3bc78faa55 on Sep 19, 2017
  19. codablock referenced this in commit 255cd26231 on Dec 9, 2017
  20. codablock referenced this in commit 8be396a3b8 on Dec 19, 2017
  21. str4d cross-referenced this on Oct 22, 2020 from issue Lightweight abstraction of boost::filesystem by str4d
  22. zkbot referenced this in commit 40d5f0aa57 on Oct 26, 2020
  23. bitcoin 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-05-20 06:55 UTC