提交 f38c73e5 编写于 作者: Y yygxr

fix xts case error for musl

Signed-off-by: Nyygxr <wuhao30@huawei.com>
上级 a9eedeac
...@@ -781,18 +781,21 @@ export default function cameraJSUnitOutput(surfaceId: any) { ...@@ -781,18 +781,21 @@ export default function cameraJSUnitOutput(surfaceId: any) {
console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 captureSession == null || undefined") console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 captureSession == null || undefined")
expect().assertFail(); expect().assertFail();
} else { } else {
captureSession.addOutput(metadataOutput, async (err) => { if (!isEmpty(metadataOutput)) {
if (!err) { captureSession.addOutput(metadataOutput, async (err) => {
expect(true).assertTrue(); if (!err) {
console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 success"); expect(true).assertTrue();
} else { console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 success");
console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 FAILED: " + err.message); } else {
expect().assertFail(); console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 FAILED: " + err.message);
} expect().assertFail();
console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 ends here"); }
await sleep(1000); console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_CAPTURE_SESSION_ADD_METADATA_OUTPUT_CALLBACK_0100 ends here");
done(); await sleep(1000);
}) done();
})
}
} }
await sleep(1000); await sleep(1000);
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册