Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
626827e4
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
626827e4
编写于
3月 28, 2023
作者:
1
18721213663
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bugfix_fs_write_checkfd
Signed-off-by:
N
18721213663
<
zhuhongtao12@huawei.com
>
上级
2212b4e2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
12 deletion
+9
-12
storage/storagefileiov9jstest/src/main/js/test/members/read.test.js
...oragefileiov9jstest/src/main/js/test/members/read.test.js
+3
-4
storage/storagefileiov9jstest/src/main/js/test/members/write.test.js
...ragefileiov9jstest/src/main/js/test/members/write.test.js
+6
-8
未找到文件。
storage/storagefileiov9jstest/src/main/js/test/members/read.test.js
浏览文件 @
626827e4
...
@@ -751,14 +751,13 @@ export default function fileIORead() {
...
@@ -751,14 +751,13 @@ export default function fileIORead() {
try
{
try
{
fileIO
.
read
(
-
1
,
new
ArrayBuffer
(
4096
),
(
err
)
=>
{
fileIO
.
read
(
-
1
,
new
ArrayBuffer
(
4096
),
(
err
)
=>
{
if
(
err
)
{
if
(
err
)
{
console
.
log
(
'
fileIO_test_read_async_013 error: {message:
'
+
err
.
message
+
'
, code:
'
+
err
.
code
+
'
}
'
);
expect
(
false
).
assertTrue
();
expect
(
err
.
code
==
13900020
&&
err
.
message
==
'
Invalid argument
'
).
assertTrue
();
done
();
}
}
});
});
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
'
fileIO_test_read_async_013 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
console
.
log
(
'
fileIO_test_read_async_013 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
expect
(
false
).
assertTrue
();
expect
(
e
.
code
==
13900020
&&
e
.
message
==
'
Invalid argument
'
).
assertTrue
();
done
();
}
}
});
});
...
...
storage/storagefileiov9jstest/src/main/js/test/members/write.test.js
浏览文件 @
626827e4
...
@@ -238,7 +238,7 @@ export default function fileIOWrite() {
...
@@ -238,7 +238,7 @@ export default function fileIOWrite() {
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
'
fileIO_test_write_sync_007 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
console
.
log
(
'
fileIO_test_write_sync_007 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
expect
(
e
.
code
==
139000
08
&&
e
.
message
==
'
Bad file descriptor
'
).
assertTrue
();
expect
(
e
.
code
==
139000
20
&&
e
.
message
==
'
Invalid argument
'
).
assertTrue
();
}
}
});
});
...
@@ -850,7 +850,7 @@ export default function fileIOWrite() {
...
@@ -850,7 +850,7 @@ export default function fileIOWrite() {
}
catch
(
e
)
{
}
catch
(
e
)
{
fileIO
.
unlinkSync
(
fpath
);
fileIO
.
unlinkSync
(
fpath
);
console
.
log
(
'
fileIO_test_write_async_016 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
console
.
log
(
'
fileIO_test_write_async_016 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
expect
(
e
.
code
==
139000
08
&&
e
.
message
==
'
Bad file descriptor
'
).
assertTrue
();
expect
(
e
.
code
==
139000
20
&&
e
.
message
==
'
Invalid argument
'
).
assertTrue
();
done
();
done
();
}
}
});
});
...
@@ -871,15 +871,13 @@ export default function fileIOWrite() {
...
@@ -871,15 +871,13 @@ export default function fileIOWrite() {
try
{
try
{
fileIO
.
write
(
-
1
,
FILE_CONTENT
,
(
err
)
=>
{
fileIO
.
write
(
-
1
,
FILE_CONTENT
,
(
err
)
=>
{
if
(
err
)
{
expect
(
false
).
assertTrue
();
fileIO
.
unlinkSync
(
fpath
);
console
.
log
(
'
fileIO_test_open_async_020 error: {message:
'
+
err
.
message
+
'
, code:
'
+
err
.
code
+
'
}
'
);
expect
(
err
.
code
==
13900008
&&
err
.
message
==
'
Bad file descriptor
'
).
assertTrue
();
done
();
}
});
});
}
catch
(
e
)
{
}
catch
(
e
)
{
fileIO
.
unlinkSync
(
fpath
);
console
.
log
(
'
fileIO_test_write_async_017 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
console
.
log
(
'
fileIO_test_write_async_017 has failed for
'
+
e
.
message
+
'
, code:
'
+
e
.
code
);
expect
(
e
.
code
==
13900020
&&
e
.
message
==
'
Invalid argument
'
).
assertTrue
();
done
();
}
}
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录