From c5c6cc5284e437fd5c8997056dcc4e888ee5ffac Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Tue, 6 Dec 2011 12:09:11 +0000 Subject: [PATCH] The memory size test makes no sense on the simulated platforms. Review URL: http://codereview.chromium.org/8818007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10173 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-mark-compact.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc index e4c885c..3c66c4c 100644 --- a/test/cctest/test-mark-compact.cc +++ b/test/cctest/test-mark-compact.cc @@ -454,7 +454,10 @@ TEST(EmptyObjectGroups) { } -#ifdef __linux__ +// Here is a memory use test that uses /proc, and is therefore Linux-only. We +// do not care how much memory the simulator uses, since it is only there for +// debugging purposes. +#if defined(__linux__) && !defined(USE_SIMULATOR) static uintptr_t ReadLong(char* buffer, intptr_t* position, int base) { @@ -532,4 +535,4 @@ TEST(BootUpMemoryUse) { } } -#endif // __linux__ +#endif // __linux__ and !USE_SIMULATOR -- 2.7.4