Remove problem ut

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAXQRE
Signed-off-by: sandee <xieyunfei8@huawei.com>
Change-Id: I2aff97e4c54a6a3791f7d4559d2a4d5f33201371
This commit is contained in:
sandee 2024-10-17 11:43:14 +08:00
parent 70cd0a34fe
commit ba4130bf33

View File

@ -60,38 +60,6 @@ HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest001)
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
}
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest002)
{
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
JSHandle<JSFunction> func(thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction());
JSHandle<Method> method(thread, func->GetMethod());
MachineCodeDesc desc;
desc.codeType = MachineCodeType::BASELINE_CODE;
desc.instructionsSize = 100;
desc.instructionsAddr = 1000;
desc.stackMapSizeAlign = 100;
Jit::GetInstance()->SetEnableJitFort(false);
ASSERT_EQ(Jit::GetInstance()->IsEnableJitFort(), false);
TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc);
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
}
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest003)
{
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
JSHandle<JSFunction> func(thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction());
JSHandle<Method> method(thread, func->GetMethod());
MachineCodeDesc desc;
desc.codeType = MachineCodeType::FAST_JIT_CODE;
desc.instructionsSize = 100;
desc.instructionsAddr = 1000;
desc.stackMapSizeAlign = 100;
Jit::GetInstance()->SetEnableJitFort(false);
ASSERT_EQ(Jit::GetInstance()->IsEnableJitFort(), false);
TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc);
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
}
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest004)
{
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
@ -112,28 +80,6 @@ HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest004)
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
}
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest005)
{
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
JSHandle<JSFunction> func(thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction());
JSHandle<Method> method(thread, func->GetMethod());
MachineCodeDesc desc;
desc.codeType = MachineCodeType::FAST_JIT_CODE;
desc.instructionsSize = 100;
desc.instructionsAddr = 1000;
desc.stackMapSizeAlign = 100;
desc.rodataSizeAfterTextAlign = 0;
desc.rodataSizeBeforeTextAlign = 0;
desc.isAsyncCompileMode = true;
desc.stackMapOrOffsetTableSize = 100;
desc.stackMapOrOffsetTableAddr = 100;
Jit::GetInstance()->SetEnableJitFort(false);
ASSERT_EQ(Jit::GetInstance()->IsEnableJitFort(), false);
TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc);
MachineCode *code = MachineCode::Cast(machineCode);
code->GetStackMapOrOffsetTableAddress();
}
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest006)
{
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();