Index: test/base-unittests/sys-info-unittest.cc |
diff --git a/test/base-unittests/sys-info-unittest.cc b/test/base-unittests/sys-info-unittest.cc |
index 10bd91bb01571850fb5293b832f70e01ec46b57e..a760f941f6f37c5bb5d03fd8d3e8351f8f5a1887 100644 |
--- a/test/base-unittests/sys-info-unittest.cc |
+++ b/test/base-unittests/sys-info-unittest.cc |
@@ -5,6 +5,12 @@ |
#include "src/base/sys-info.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#if V8_OS_NACL |
+#define DISABLE_ON_NACL(Name) DISABLED_##Name |
+#else |
+#define DISABLE_ON_NACL(Name) Name |
+#endif |
+ |
namespace v8 { |
namespace base { |
@@ -13,7 +19,7 @@ TEST(SysInfoTest, NumberOfProcessors) { |
} |
-TEST(SysInfoTest, AmountOfPhysicalMemory) { |
+TEST(SysInfoTest, DISABLE_ON_NACL(AmountOfPhysicalMemory)) { |
EXPECT_LT(0, SysInfo::AmountOfPhysicalMemory()); |
} |