Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-01-03 13:29:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f9a33fbeee51ac8e77a4f1f39d61ae0d3e1d0230
f9a33fbe
1 parent
e590537d
fix the compile failed for utest at 32bits cpus
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
trunk/src/utest/srs_utest_kernel.cpp
trunk/src/utest/srs_utest_kernel.cpp
查看文件 @
f9a33fb
...
...
@@ -1207,12 +1207,12 @@ VOID TEST(KernelStreamTest, StreamRead8Bytes)
data
[
18
]
=
0x13
;
data
[
19
]
=
0x14
;
EXPECT_EQ
(
0x0102030405060708
,
s
.
read_8bytes
());
EXPECT_EQ
(
0x090a0b0c0d0e0f10
,
s
.
read_8bytes
());
EXPECT_EQ
(
0x0102030405060708LL
,
s
.
read_8bytes
());
EXPECT_EQ
(
0x090a0b0c0d0e0f10LL
,
s
.
read_8bytes
());
s
.
skip
(
-
1
*
s
.
pos
());
s
.
skip
(
5
);
EXPECT_EQ
(
0x060708090a0b0c0d
,
s
.
read_8bytes
());
EXPECT_EQ
(
0x060708090a0b0c0d
LL
,
s
.
read_8bytes
());
}
/**
...
...
@@ -1365,8 +1365,8 @@ VOID TEST(KernelStreamTest, StreamWrite8Bytes)
EXPECT_TRUE
(
ERROR_SUCCESS
==
s
.
initialize
(
data
,
1024
));
s
.
write_8bytes
(
0x1011121314151617
);
s
.
write_8bytes
(
0x1819202122232425
);
s
.
write_8bytes
(
0x1011121314151617LL
);
s
.
write_8bytes
(
0x1819202122232425LL
);
s
.
skip
(
-
1
*
s
.
pos
());
EXPECT_EQ
(
0x10
,
s
.
read_1bytes
());
...
...
请
注册
或
登录
后发表评论