提交 2212b4e2 编写于 作者: 1 18721213663

fs_add_checkfd

Signed-off-by: N18721213663 <zhuhongtao12@huawei.com>
上级 2231595b
......@@ -156,7 +156,7 @@ describe('fileIO_fs_close', function () {
expect(false).assertTrue();
} catch (e) {
console.log('fileIO_test_close_sync_005 has failed for ' + e.message + ', code: ' + e.code);
expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue();
expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue();
}
});
......@@ -367,7 +367,7 @@ describe('fileIO_fs_close', function () {
expect(false).assertTrue();
} catch (e) {
console.log('fileIO_test_close_async_007 has failed for ' + e.message + ', code: ' + e.code);
expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue();
expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue();
done();
}
});
......
......@@ -297,7 +297,7 @@ export default function fileIORead() {
expect(false).assertTrue();
} catch (e) {
console.log('fileIO_test_read_sync_009 has failed for ' + e.message + ', code: ' + e.code);
expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue();
expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue();
}
});
......@@ -732,7 +732,7 @@ export default function fileIORead() {
expect(false).assertTrue();
} catch (e) {
console.log('fileIO_test_read_async_012 has failed for ' + e.message + ', code: ' + e.code);
expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue();
expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue();
done();
}
});
......@@ -752,7 +752,7 @@ export default function fileIORead() {
fileIO.read(-1, new ArrayBuffer(4096), (err) => {
if(err) {
console.log('fileIO_test_read_async_013 error: {message: ' + err.message + ', code: ' + err.code + '}');
expect(err.code == 13900008 && err.message == 'Bad file descriptor').assertTrue();
expect(err.code == 13900020 && err.message == 'Invalid argument').assertTrue();
done();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册