Reviewers: machenbach,

Message:
PTAL

Description:
Don't run tests with the profiler when USE_SIMULATOR is defined.

BUG=v8:2874

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

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

Affected files (+8, -0 lines):
  M test/cctest/test-api.cc


Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 5496995ffe4c4935a834351e9f7c84beec72c9a0..7375c5af0385ba605d5b4121af7859ea6fe36cc5 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -77,12 +77,20 @@ using ::v8::V8;
 using ::v8::Value;


+// TODO(bmeurer): Don't run profiled tests when using the simulator.
+// This is a temporary work-around, until the profiler is fixed.
+#if USE_SIMULATOR
+#define THREADED_PROFILED_TEST(Name)                                 \
+  THREADED_TEST(Name)
+#else
 #define THREADED_PROFILED_TEST(Name)                                 \
   static void Test##Name();                                          \
   TEST(Name##WithProfiler) {                                         \
     RunWithProfiler(&Test##Name);                                    \
   }                                                                  \
   THREADED_TEST(Name)
+#endif
+

 void RunWithProfiler(void (*test)()) {
   LocalContext env;


--
--
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/groups/opt_out.

Reply via email to