Index: runtime/vm/object_test.cc |
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc |
index d681c08c821837cb78dfd05dadf23a11f6e8dd5b..44c7ab0741965d0cb35610b32a1b4a1ba9e6adf1 100644 |
--- a/runtime/vm/object_test.cc |
+++ b/runtime/vm/object_test.cc |
@@ -4033,6 +4033,9 @@ TEST_CASE(FunctionSourceFingerprint) { |
TEST_CASE(FunctionWithBreakpointNotInlined) { |
+ if (!FLAG_support_debugger) { |
+ return; |
+ } |
const char* kScriptChars = |
"class A {\n" |
" a() {\n" |
@@ -4102,6 +4105,9 @@ VM_TEST_CASE(SpecialClassesHaveEmptyArrays) { |
} |
+#ifndef PRODUCT |
+ |
+ |
class ObjectAccumulator : public ObjectVisitor { |
public: |
explicit ObjectAccumulator(GrowableArray<Object*>* objects) |
@@ -4430,6 +4436,9 @@ VM_TEST_CASE(PrintJSONPrimitives) { |
} |
+#endif // !PRODUCT |
+ |
+ |
TEST_CASE(InstanceEquality) { |
// Test that Instance::OperatorEquals can call a user-defined operator==. |
const char* kScript = |