Index: mojo/public/c/system/tests/core_unittest.cc |
diff --git a/mojo/public/c/system/tests/core_unittest.cc b/mojo/public/c/system/tests/core_unittest.cc |
index a2f6785205238d911127c5edf89d6a4d76acbc20..d071f4865d78b46e00f59be5d8f00722a2fbde5b 100644 |
--- a/mojo/public/c/system/tests/core_unittest.cc |
+++ b/mojo/public/c/system/tests/core_unittest.cc |
@@ -140,7 +140,16 @@ TEST(CoreTest, BasicMessagePipe) { |
EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1)); |
} |
-TEST(CoreTest, BasicDataPipe) { |
+// TODO(ncbray): enable these tests once NaCl supports the corresponding APIs. |
+#ifdef __native_client__ |
+#define MAYBE_BasicDataPipe DISABLED_BasicDataPipe |
+#define MAYBE_BasicSharedBuffer DISABLED_BasicSharedBuffer |
+#else |
+#define MAYBE_BasicDataPipe BasicDataPipe |
+#define MAYBE_BasicSharedBuffer BasicSharedBuffer |
+#endif |
+ |
+TEST(CoreTest, MAYBE_BasicDataPipe) { |
MojoHandle hp, hc; |
MojoHandleSignals sig; |
char buffer[20] = {0}; |
@@ -228,7 +237,7 @@ TEST(CoreTest, BasicDataPipe) { |
// the producer never-writable? |
} |
-TEST(CoreTest, BasicSharedBuffer) { |
+TEST(CoreTest, MAYBE_BasicSharedBuffer) { |
MojoHandle h0, h1; |
void* pointer; |