Chromium Code Reviews

Unified Diff: test/cctest/test-api.cc

Issue 23710063: Don't run tests with the profiler when USE_SIMULATOR is defined. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine