未验证 提交 bca9d8ab 编写于 作者: O openharmony_ci 提交者: Gitee

!5816 bugfix fileio fchown异常处理信息错误

Merge pull request !5816 from zhuhongtao666/bugfix_fchown
......@@ -3682,7 +3682,7 @@ export default function fileIOTest() {
catch (err) {
fileio.unlinkSync(fpath);
console.info('fileio_test_fchown_sync_002 has failed for ' + err);
expect(err.message == "Operation not permitted").assertTrue();
expect(err.message == "Invalid owner").assertTrue();
}
});
......@@ -3752,7 +3752,7 @@ export default function fileIOTest() {
fileio.closeSync(fd);
fileio.unlinkSync(fpath);
console.info('fileio_test_fchown_sync_005 has failed for ' + err);
expect(err.message == "Operation not permitted").assertTrue();
expect(err.message == "Invalid owner").assertTrue();
}
});
......
......@@ -210,7 +210,7 @@ describe('fileio_fchown', async function () {
fileio.fchownSync(fd, null, stat.gid);
} catch (e) {
console.info('fileio_test_fchown_sync_003 has failed for ' + e);
expect(e.message == "Operation not permitted").assertTrue();
expect(e.message == "Invalid owner").assertTrue();
fileio.unlinkSync(fpath);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册