[llvm-bugs] [Bug 45307] temp_directory_path() returns path with trailing slash

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 20 14:17:12 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45307

Louis Dionne <ldionne at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Louis Dionne <ldionne at apple.com> ---
Revisiting this, I think returning the environment variable as-is is fine. In
the test program, we should canonicalize the result of
`fs::temp_directory_path()` if we want to check the assertion we're checking.

I'd also argue that `path{"/tmp"}` and `path{"/tmp/"}` should probably compare
equal, but that's a DR if anything.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200520/037a9134/attachment.html>


More information about the llvm-bugs mailing list