Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
f6258671
Commit
f6258671
authored
7 years ago
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loose a time assertion in test/bthread_cond_unittest.cpp
parent
a5d2d4ec
master
0.9.8-rc01
0.9.7
0.9.7-rc03
0.9.7-rc02
0.9.7-rc01
0.9.6
0.9.6-rc03
0.9.6-rc02
0.9.6-rc01
0.9.5
v0.9.0
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bthread_cond_unittest.cpp
test/bthread_cond_unittest.cpp
+1
-1
No files found.
test/bthread_cond_unittest.cpp
View file @
f6258671
...
...
@@ -97,7 +97,7 @@ TEST(CondTest, sanity) {
long
delta
=
wake_time
[
i
]
-
last_time
-
SIGNAL_INTERVAL_US
;
EXPECT_GT
(
wake_time
[
i
],
last_time
);
square_sum
+=
delta
*
delta
;
EXPECT_LT
(
labs
(
delta
),
2
000L
)
<<
"error["
<<
i
<<
"]="
<<
delta
<<
"="
EXPECT_LT
(
labs
(
delta
),
10
000L
)
<<
"error["
<<
i
<<
"]="
<<
delta
<<
"="
<<
wake_time
[
i
]
<<
" - "
<<
last_time
;
}
printf
(
"Average error is %fus
\n
"
,
sqrt
(
square_sum
/
std
::
max
(
nbeforestop
,
1UL
)));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment