hidebug测试用例修复

Signed-off-by: yuhaoqiang <yuhaoqiang@huawei.com>
This commit is contained in:
yuhaoqiang 2025-01-03 20:18:35 +08:00
parent 42657b26f5
commit e4f785f326
2 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,9 @@ module_output_path = "hiprofiler/hidebug/test/"
ohos_unittest("hidebug_test") {
module_out_path = module_output_path
sources = [ "./hidebug_test.cpp" ]
if (build_variant == "root") {
defines = [ "HIDEBUG_BUILD_VARIANT_ROOT" ]
}
deps = [
"$hidebug_path/frameworks/hidebug_ndk:ohhidebug",
"$hidebug_path/interfaces/native/innerkits:libhidebug",

View File

@ -36,6 +36,7 @@ protected:
}
};
#ifdef HIDEBUG_BUILD_VARIANT_ROOT
/**
* @tc.name: InitEnvironmentParam
* @tc.desc: test InitEnvironmentParam
@ -148,6 +149,7 @@ HWTEST_F(HidebugTest, InitEnvironmentParam9, TestSize.Level1)
const char* inputName = "hidebug";
EXPECT_FALSE(InitEnvironmentParam(inputName));
}
#endif
/**
* @tc.name: OH_HiDebug_GetAppCpuUsage1