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