Don't run tests with the profiler when USE_SIMULATOR is defined.
authorbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 Sep 2013 10:57:18 +0000 (10:57 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 Sep 2013 10:57:18 +0000 (10:57 +0000)
BUG=v8:2874
R=machenbach@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16757 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-api.cc

index 5496995..7375c5a 100644 (file)
@@ -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;