Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Unified Diff: native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc

Issue 660353003: [NaCl SDK] nacl_io: Fix utime() on directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc b/native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc
index 3cd3b7acd58b2cb6ed93a9019529545edfb0fcb8..a4c2af24472a388a32721ce93da4dc23db7afedb 100644
--- a/native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/mem_fs_node_test.cc
@@ -137,7 +137,8 @@ TEST(MemFsNodeTest, Fchmod) {
struct stat s;
ASSERT_EQ(0, file.GetStat(&s));
- EXPECT_EQ(S_IFREG | S_IRALL | S_IWALL, s.st_mode);
+ EXPECT_TRUE(S_ISREG(s.st_mode));
+ EXPECT_EQ(S_IRALL | S_IWALL, s.st_mode & 0777);
// Change to read-only.
EXPECT_EQ(0, file.Fchmod(S_IRALL));

Powered by Google App Engine
This is Rietveld 408576698