diff options
author | Dan Albert <danalbert@google.com> | 2015-04-29 11:32:23 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-04-29 17:11:28 -0700 |
commit | 0c4b3a319d2bc3dbc917e869af34e24788e6fc48 (patch) | |
tree | eae38a44691e9d19114aa508fc419d9c27ce2278 /base/file_test.cpp | |
parent | 850188fc040e8b1f345359f795165c7925617506 (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/file_test.cpp')
-rw-r--r-- | base/file_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_test.cpp b/base/file_test.cpp index a7f070d75..cbb275130 100644 --- a/base/file_test.cpp +++ b/base/file_test.cpp @@ -55,6 +55,9 @@ TEST(file, WriteStringToFile) { EXPECT_EQ("abc", s); } +// WriteStringToFile2 is explicitly for setting Unix permissions, which make no +// sense on Windows. +#if !defined(_WIN32) TEST(file, WriteStringToFile2) { TemporaryFile tf; ASSERT_TRUE(tf.fd != -1); @@ -71,6 +74,7 @@ TEST(file, WriteStringToFile2) { << strerror(errno); EXPECT_EQ("abc", s); } +#endif TEST(file, WriteStringToFd) { TemporaryFile tf; |