[libcxx-commits] [PATCH] D98406: [libcxx] [test] Use a string_view of the native path type in the concat test

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 11 09:35:34 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGcb2648e6f0fb: [libcxx] [test] Use a string_view of the native path type in the concat test (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98406/new/

https://reviews.llvm.org/D98406

Files:
  libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp


Index: libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp
+++ libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp
@@ -341,7 +341,7 @@
     }
     {
       path LHS((const char*)TC.lhs);
-      std::string_view RHS((const char*)TC.rhs);
+      std::basic_string_view<path::value_type> RHS((const path::value_type*)TC.rhs);
       path& Ref = (LHS += RHS);
       assert(LHS == (const char*)TC.expect);
       assert(&Ref == &LHS);
@@ -367,7 +367,7 @@
     }
     {
       path LHS((const char*)TC.lhs);
-      std::string_view RHS((const char*)TC.rhs);
+      std::basic_string_view<path::value_type> RHS((const path::value_type*)TC.rhs);
       const char* E = TC.expect;
       PathReserve(LHS, StrLen(E) + 5);
       {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98406.329996.patch
Type: text/x-patch
Size: 945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210311/df6367b1/attachment.bin>


More information about the libcxx-commits mailing list