| Index: runtime/vm/unit_test.h
|
| diff --git a/runtime/vm/unit_test.h b/runtime/vm/unit_test.h
|
| index 01ba00926e5dbba4eb3a75a2e2a04ec5ed2c76e5..b74d4479472ad331928968dd000a5d39889bd6e8 100644
|
| --- a/runtime/vm/unit_test.h
|
| +++ b/runtime/vm/unit_test.h
|
| @@ -34,8 +34,10 @@
|
| UNIT_TEST_CASE(name) \
|
| { \
|
| TestIsolateScope __test_isolate__; \
|
| - StackZone __zone__(__test_isolate__.isolate()); \
|
| - HandleScope __hs__(__test_isolate__.isolate()); \
|
| + Thread* __thread__ = Thread::Current(); \
|
| + ASSERT(__thread__->isolate() == __test_isolate__.isolate()); \
|
| + StackZone __zone__(__thread__); \
|
| + HandleScope __hs__(__thread__); \
|
| Dart_TestHelper##name(); \
|
| } \
|
| static void Dart_TestHelper##name()
|
|
|