[libcxx-commits] [libcxx] 9e634b3 - [libc++] Temporarily disable the in_out_result test on Fuchsia.

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 11 15:06:25 PST 2022


Author: Konstantin Varlamov
Date: 2022-01-11T15:05:43-08:00
New Revision: 9e634b35ff51d0eb2b38013111491e88bdbae388

URL: https://github.com/llvm/llvm-project/commit/9e634b35ff51d0eb2b38013111491e88bdbae388
DIFF: https://github.com/llvm/llvm-project/commit/9e634b35ff51d0eb2b38013111491e88bdbae388.diff

LOG: [libc++] Temporarily disable the in_out_result test on Fuchsia.

Added: 
    

Modified: 
    libcxx/test/std/algorithms/algorithms.results/in_out_result.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/algorithms/algorithms.results/in_out_result.pass.cpp b/libcxx/test/std/algorithms/algorithms.results/in_out_result.pass.cpp
index 2fb02fba6f10c..e7a311c8bf5c4 100644
--- a/libcxx/test/std/algorithms/algorithms.results/in_out_result.pass.cpp
+++ b/libcxx/test/std/algorithms/algorithms.results/in_out_result.pass.cpp
@@ -16,10 +16,14 @@
 //     struct in_out_result;
 // }
 
+
 #include <algorithm>
 #include <cassert>
 #include <type_traits>
 
+// FIXME(varconst): this test doesn't work on Fuchsia.
+#ifndef __Fuchsia__
+
 struct A {
   A(int&);
 };
@@ -42,7 +46,10 @@ static_assert(std::is_convertible_v<const std::ranges::in_out_result<int, int>&&
 static_assert(!std::is_nothrow_convertible_v<const std::ranges::in_out_result<int, int>&&,
     std::ranges::in_out_result<long, long>>);
 
+#endif // __Fuchsia__
+
 int main(int, char**) {
+#ifndef __Fuchsia__
   // Conversion, fundamental types.
   {
     std::ranges::in_out_result<int, bool> x = {2, false};
@@ -127,6 +134,8 @@ int main(int, char**) {
     static_assert(
         !std::is_convertible_v<std::ranges::in_out_result<Foo1, Foo2>, std::ranges::in_out_result<Bar1, Bar2>>);
   }
+#endif // __Fuchsia__
 
   return 0;
 }
+


        


More information about the libcxx-commits mailing list