Disable SysInfoTest.AmountOfPhysicalMemory on NaCl.

TBR=machenbach@chromium.org

Review URL: https://codereview.chromium.org/499263003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23447 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
bmeurer@chromium.org 2014-08-27 10:37:54 +00:00
parent a81ab7af48
commit 8968087b87

View File

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