Fix two of the three bot failures for midpoint; the ones regarding the lack of '__int128_t'

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@356169 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp b/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp
index cfbff73..d61d7fd 100644
--- a/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp
+++ b/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp
@@ -41,7 +41,6 @@
     test<int16_t>();
     test<int32_t>();
     test<int64_t>();
-    test<__int128_t>();
 
     test<unsigned char>();
     test<unsigned short>();
@@ -53,7 +52,11 @@
     test<uint16_t>();
     test<uint32_t>();
     test<uint64_t>();
+
+#ifndef _LIBCPP_HAS_NO_INT128
+    test<__int128_t>();
     test<__uint128_t>();
+#endif
 
     test<char>();
     test<ptrdiff_t>();
diff --git a/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp b/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp
index 6b0f095..32d931b 100644
--- a/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp
+++ b/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp
@@ -115,7 +115,6 @@
     signed_test<int16_t>();
     signed_test<int32_t>();
     signed_test<int64_t>();
-    signed_test<__int128_t>();
 
     unsigned_test<unsigned char>();
     unsigned_test<unsigned short>();
@@ -127,7 +126,11 @@
     unsigned_test<uint16_t>();
     unsigned_test<uint32_t>();
     unsigned_test<uint64_t>();
+
+#ifndef _LIBCPP_HAS_NO_INT128
     unsigned_test<__uint128_t>();
+    signed_test<__int128_t>();
+#endif
 
 //     int_test<char>();
     signed_test<ptrdiff_t>();