From 0c4b3a319d2bc3dbc917e869af34e24788e6fc48 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 29 Apr 2015 11:32:23 -0700 Subject: Get libbase tests working on Windows. Tests using files from /proc still fail on Windows (obviously), but all tests are passing when run in Wine. Change-Id: Ie4c3ba65b642202f8fcaec73332a53bee6115fba --- base/stringprintf_test.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base/stringprintf_test.cpp') diff --git a/base/stringprintf_test.cpp b/base/stringprintf_test.cpp index 5cc20864fe..54b2b6c9e1 100644 --- a/base/stringprintf_test.cpp +++ b/base/stringprintf_test.cpp @@ -20,11 +20,14 @@ #include +// The z size sepcifier isn't supported on Windows, so this test isn't useful. +#if !defined(_WIN32) TEST(StringPrintfTest, HexSizeT) { size_t size = 0x00107e59; EXPECT_EQ("00107e59", android::base::StringPrintf("%08zx", size)); EXPECT_EQ("0x00107e59", android::base::StringPrintf("0x%08zx", size)); } +#endif TEST(StringPrintfTest, StringAppendF) { std::string s("a"); -- cgit v1.2.3