From dee718a22fcc0c081ccc56c4b8f0fb3c567fc062 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Mon, 24 Apr 2017 10:47:24 -0700 Subject: [PATCH] Properly gate the wchar tests in FBStringTest Summary: Using `#ifndef __ANDROID__` does not necessarily handle all cases of gating the wchar tests Reviewed By: Orvid Differential Revision: D4938634 fbshipit-source-id: a2184e20b8c382e5a34947c029f7e3746272b407 --- folly/test/FBStringTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/test/FBStringTest.cpp b/folly/test/FBStringTest.cpp index 44d7864b..2c867dd1 100644 --- a/folly/test/FBStringTest.cpp +++ b/folly/test/FBStringTest.cpp @@ -1596,7 +1596,7 @@ TEST(U16FBString, compareToStdU16StringLong) { EXPECT_TRUE(fbB >= stdB); } -#ifndef __ANDROID__ // Android's handling of char32_t causes this test to fail +#if FOLLY_HAVE_WCHAR_SUPPORT TEST(U32FBString, compareToStdU32StringLong) { using folly::basic_fbstring; using namespace std::string_literals; -- 2.34.1