提交 863f64dc 编写于 作者: Z zhangxingxia

update fileio xts

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 9bf33b13
...@@ -55,7 +55,7 @@ describe('fileio_stream_close', function () { ...@@ -55,7 +55,7 @@ describe('fileio_stream_close', function () {
* @tc.require * @tc.require
*/ */
it('fileio_test_stream_close_sync_001', 0, async function () { it('fileio_test_stream_close_sync_001', 0, async function () {
let fpath = await nextFileName('fileio_test_stream_close_sync_000'); let fpath = await nextFileName('fileio_test_stream_close_sync_001');
expect(prepareFile(fpath, FILE_CONTENT)).assertTrue(); expect(prepareFile(fpath, FILE_CONTENT)).assertTrue();
try { try {
let fd = fileio.openSync(fpath, 0o2); let fd = fileio.openSync(fpath, 0o2);
...@@ -64,6 +64,7 @@ describe('fileio_stream_close', function () { ...@@ -64,6 +64,7 @@ describe('fileio_stream_close', function () {
ss.closeSync(1); ss.closeSync(1);
} catch (err) { } catch (err) {
console.info('fileio_test_stream_close_sync_001 has failed for ' + err); console.info('fileio_test_stream_close_sync_001 has failed for ' + err);
expect(err.message == "Number of arguments unmatched").assertTrue();
fileio.unlinkSync(fpath); fileio.unlinkSync(fpath);
} }
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册