[vm] Fix product build by if/defing out reload tests

TEST=Fixes product build of run_vm_tests

Change-Id: I62fae4aba74cca6ebe1b3ce965fc015db3277e02
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296803
Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
Martin Kustermann 2023-04-21 17:38:00 +00:00
parent ee178b273b
commit 79d133ab3a

View file

@ -388,6 +388,7 @@ class CheckinTask : public StateMachineTask {
// Test that mutators will not check-in to "deopt safepoint operations" at
// at places where the mutator cannot depot (which is indicated by the
// Thread::runtime_call_kind_ value).
#if !defined(PRODUCT)
ISOLATE_UNIT_TEST_CASE(SafepointOperation_SafepointPointTest) {
auto isolate_group = thread->isolate_group();
@ -505,6 +506,7 @@ ISOLATE_UNIT_TEST_CASE(SafepointOperation_SafepointPointTest) {
}
}
}
#endif // !defined(PRODUCT)
class StressTask : public StateMachineTask {
public:
@ -688,6 +690,7 @@ ISOLATE_UNIT_TEST_CASE(ReloadScopes_Test) {
}
}
#if !defined(PRODUCT)
class ReloadTask : public StateMachineTask {
public:
using Data = StateMachineTask::Data;
@ -832,5 +835,6 @@ ISOLATE_UNIT_TEST_CASE(Reload_AtNonReloadSafepoint) {
task->MarkAndNotify(ReloadTask::kPleaseExit);
task->WaitUntil(ReloadTask::kExited);
}
#endif // !defined(PRODUCT)
} // namespace dart