提交 428442bd 编写于 作者: 1 15929983503

bytrace模块startTrace接口增加可选参数传参undefined测试挑单OpenHarmony-3.2-Release分支

Signed-off-by: N15929983503 <duanhaizhen@huawei.com>
上级 39e129c8
...@@ -201,6 +201,22 @@ describe("BytraceTest", function () { ...@@ -201,6 +201,22 @@ describe("BytraceTest", function () {
console.info("------DFX_DFR_Bytrace_0500 end------"); console.info("------DFX_DFR_Bytrace_0500 end------");
done(); done();
}) })
it("DFX_DFR_Bytrace_0600", 0, async function (done) {
console.info("-------DFX_DFR_Bytrace_0600 start--------");
let flag = true;
try {
bytrace.startTrace("funcA", 111, undefined);
expect(flag).assertTrue();
} catch (err) {
flag = false;
console.info("DFX_DFR_Bytrace_0600 fail!");
console.info("DFX_DFR_Bytrace_0600 err = " + err);
expect(flag).assertTrue();
}
console.info("------DFX_DFR_Bytrace_0600 end------");
done();
})
}) })
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册