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

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

Issue 59883020: [NaCl SDK] nacl_io: Enable isatty running under sel_ldr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 dec489bca56bfe28fd45bc535da8046a1fe68a86..d6d8c1844b71096d4151a1bf07a2c520a986ffce 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
@@ -79,7 +79,7 @@ TEST(MemFsNodeTest, File) {
EXPECT_EQ(S_IFREG, file.GetType());
EXPECT_FALSE(file.IsaDir());
EXPECT_TRUE(file.IsaFile());
- EXPECT_FALSE(file.IsaTTY());
+ EXPECT_EQ(ENOTTY, file.Isatty());
EXPECT_EQ(0, file.RefCount());
// Test IO
@@ -209,7 +209,7 @@ TEST(MemFsNodeTest, Directory) {
EXPECT_EQ(S_IFDIR, root.GetType());
EXPECT_TRUE(root.IsaDir());
EXPECT_FALSE(root.IsaFile());
- EXPECT_FALSE(root.IsaTTY());
+ EXPECT_EQ(ENOTTY, root.Isatty());
EXPECT_EQ(0, root.RefCount());
// IO operations should fail
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/main.cc ('k') | native_client_sdk/src/tests/nacl_io_test/mock_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698