Index: test/compiler-unittests/compiler-unittests.h |
diff --git a/test/compiler-unittests/compiler-unittests.h b/test/compiler-unittests/compiler-unittests.h |
index fef34cffd6808d943628102884690aa5713ce329..82e95794169690b76577437f03e3363ef8bde8ed 100644 |
--- a/test/compiler-unittests/compiler-unittests.h |
+++ b/test/compiler-unittests/compiler-unittests.h |
@@ -33,6 +33,16 @@ namespace compiler { |
#endif |
+// The TARGET_TEST_P(Case, Name) macro works just like |
+// TEST_P(Case, Name), except that the test is disabled |
+// if the platform is not a supported TurboFan target. |
+#if V8_TURBOFAN_TARGET |
+#define TARGET_TEST_P(Case, Name) TEST_P(Case, Name) |
+#else |
+#define TARGET_TEST_P(Case, Name) TEST_P(Case, DISABLED_##Name) |
+#endif |
+ |
+ |
// The TARGET_TYPED_TEST(Case, Name) macro works just like |
// TYPED_TEST(Case, Name), except that the test is disabled |
// if the platform is not a supported TurboFan target. |