Use fs::path as variable type instead of std::string, when the input potentially is a path, as they can't be implicitly converted back to string.
Details
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG81db3c31aafe: [libcxx] [test] Fix all remaining issues with fs::path::string_type being…
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Accepting as long as you extract PutEnv into filesystem_test_helper.h and use it everywhere in the test suite!
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp | ||
---|---|---|
28–29 | This could be in filesystem_test_helper (I proposed adding such a helper in another patch in this series). |
Comment Actions
Sure, that sounds like a good idea, but I'd rather do that in a separate patch (superseding the one you commented on) and keeping this one as such (as a pure path/string handling fix).
Comment Actions
Sounds good -- can you open the patch now? I want to make sure we don't accidentally forget to cleanup afterwards :-)
This could be in filesystem_test_helper (I proposed adding such a helper in another patch in this series).