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

Unified Diff: libraries/nacl-mounts/test.nacl/SimpleTest.cc

Issue 10377102: Added simplest device mount implementation (includes NullDevice and RandomDevice) (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « libraries/nacl-mounts/test.nacl/Makefile ('k') | libraries/nacl-mounts/test/DevMountTest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libraries/nacl-mounts/test.nacl/SimpleTest.cc
===================================================================
--- libraries/nacl-mounts/test.nacl/SimpleTest.cc (revision 580)
+++ libraries/nacl-mounts/test.nacl/SimpleTest.cc (working copy)
@@ -14,6 +14,10 @@
struct stat buf;
EXPECT_EQ(0, stat("/", &buf));
EXPECT_EQ(1, S_ISDIR(buf.st_mode));
+ EXPECT_EQ(0, stat("/dev", &buf));
+ EXPECT_EQ(1, S_ISDIR(buf.st_mode));
+ EXPECT_EQ(0, stat("/dev/fd", &buf));
+ EXPECT_EQ(1, S_ISDIR(buf.st_mode));
EXPECT_EQ(-1, stat("/dummy", &buf));
}
« no previous file with comments | « libraries/nacl-mounts/test.nacl/Makefile ('k') | libraries/nacl-mounts/test/DevMountTest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698