Index: test/cctest/test-transitions.cc |
diff --git a/test/cctest/test-transitions.cc b/test/cctest/test-transitions.cc |
index 60a0706b048bbc0f85cd627f9452423614ad9ff0..5cfa0c507d3ef232a7454972dc523f823916722b 100644 |
--- a/test/cctest/test-transitions.cc |
+++ b/test/cctest/test-transitions.cc |
@@ -87,7 +87,9 @@ TEST(TransitionArray_SimpleFieldTransitions) { |
(key == *name2 && target == *map2)); |
} |
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#ifdef DEBUG |
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#endif |
} |
@@ -136,7 +138,9 @@ TEST(TransitionArray_FullFieldTransitions) { |
(key == *name2 && target == *map2)); |
} |
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#ifdef DEBUG |
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#endif |
} |
@@ -183,7 +187,9 @@ TEST(TransitionArray_DifferentFieldNames) { |
} |
} |
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#ifdef DEBUG |
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#endif |
} |
@@ -224,7 +230,9 @@ TEST(TransitionArray_SameFieldNamesDifferentAttributesSimple) { |
CHECK_EQ(*name, TransitionArray::GetKey(map0->raw_transitions(), i)); |
} |
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#ifdef DEBUG |
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#endif |
} |
@@ -302,5 +310,7 @@ TEST(TransitionArray_SameFieldNamesDifferentAttributes) { |
} |
} |
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#ifdef DEBUG |
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0)); |
+#endif |
} |