summaryrefslogtreecommitdiff
path: root/base/stringprintf_test.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-04-29 11:32:23 -0700
committerDan Albert <danalbert@google.com>2015-04-29 17:11:28 -0700
commit0c4b3a319d2bc3dbc917e869af34e24788e6fc48 (patch)
treeeae38a44691e9d19114aa508fc419d9c27ce2278 /base/stringprintf_test.cpp
parent850188fc040e8b1f345359f795165c7925617506 (diff)
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
Diffstat (limited to 'base/stringprintf_test.cpp')
-rw-r--r--base/stringprintf_test.cpp3
1 files changed, 3 insertions, 0 deletions
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 <string>
+// 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");