[all-commits] [llvm/llvm-project] 15ab7b: Testing: Make TempFile safe to move; test Temp{Dir...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Mar 1 13:48:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15ab7bc3af3c9f38b3404599d76e4ec3727a0f76
      https://github.com/llvm/llvm-project/commit/15ab7bc3af3c9f38b3404599d76e4ec3727a0f76
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M llvm/include/llvm/Testing/Support/SupportHelpers.h
    M llvm/unittests/CMakeLists.txt
    A llvm/unittests/Testing/CMakeLists.txt
    A llvm/unittests/Testing/Support/CMakeLists.txt
    A llvm/unittests/Testing/Support/TempPathTest.cpp

  Log Message:
  -----------
  Testing: Make TempFile safe to move; test Temp{Dir,File,Link}

Default the moves and delete the copies for TempFile, matching TempDir
and TempLink, and add tests for all of them to confirm that the
destructor is not harmful after it has been moved from.

Differential Revision: https://reviews.llvm.org/D120691




More information about the All-commits mailing list