Reviewers: Michael Achenbach,

Description:
Disable SysInfoTest.AmountOfPhysicalMemory on NaCl.

[email protected]

Please review this at https://codereview.chromium.org/499263003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+7, -1 lines):
  M test/base-unittests/sys-info-unittest.cc


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());
 }



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to