mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:37:43 +00:00
[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:
parent
ee178b273b
commit
79d133ab3a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue