diff --git a/ecmascript/tests/BUILD.gn b/ecmascript/tests/BUILD.gn index d24b8504d2a909f14dea50968689bea90070d734..f8c23ea6ae1db58404e455546333ab088035c5d5 100644 --- a/ecmascript/tests/BUILD.gn +++ b/ecmascript/tests/BUILD.gn @@ -3630,6 +3630,7 @@ group("unittest") { ":Sendable_JsSendableArrayBuffer_Test", ":Sendable_JsSharedArray_Test", ":Sendable_SharedObjectFactory_Test", + ":Unified_GC_Test", ] # TODO: CMC-GC UT FIX LATER @@ -3803,6 +3804,7 @@ group("host_unittest") { ":Sendable_JsSendableArrayBuffer_TestAction", ":Sendable_JsSharedArray_TestAction", ":Sendable_SharedObjectFactory_TestAction", + ":Unified_GC_TestAction", ] if (is_mac) { diff --git a/ecmascript/tests/unified_gc_test.cpp b/ecmascript/tests/unified_gc_test.cpp index 2ac50101647a8d62a3ad35048a47ee4529438062..5e3f14b1fd00ddee45388057acd22e40e7b9d9b8 100644 --- a/ecmascript/tests/unified_gc_test.cpp +++ b/ecmascript/tests/unified_gc_test.cpp @@ -53,8 +53,8 @@ HWTEST_F_L0(UnifiedGCTest, UnifiedGCMarkRootsScopeTest) } [[maybe_unused]] UnifiedGCMarkRootsScope unifiedGCMarkRootsScope(thread); vm->CollectGarbage(TriggerGCType::FULL_GC); - EXPECT_TRUE(weakRefArray->Get(INT_VALUE_0).IsUndefined()); - EXPECT_TRUE(!weakRefArray->Get(INT_VALUE_1).IsUndefined()); + EXPECT_TRUE(weakRefArray->Get(thread, INT_VALUE_0).IsUndefined()); + EXPECT_TRUE(!weakRefArray->Get(thread, INT_VALUE_1).IsUndefined()); vm->SetEnableForceGC(true); }