Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper
Commits
cde093a6
Commit
cde093a6
authored
Jun 03, 2022
by
Florian Schmaus
Browse files
[tests] Lower required kernel version of ECANCELED in TimeoutTest
My system running 5.15.43 also returns ECANCELED.
parent
e4042ad4
Pipeline
#83556
failed with stages
in 23 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/io/TimeoutTest.cpp
View file @
cde093a6
...
...
@@ -9,6 +9,7 @@
#include
<cstdlib>
#include
<cstring>
#include
<memory>
#include
<ostream>
#include
"Common.hpp"
#include
"CountingPrivateSemaphore.hpp"
...
...
@@ -127,7 +128,8 @@ void writeTest() {
// write requests can't be canceled when in execution so this
// will return as interupted
const
int
err
=
errno
;
ASSERT
(
err
==
EINTR
||
(
EMPER_LINUX_GE
(
"5.16.0"
)
&&
err
==
ECANCELED
));
ASSERT_MSG
(
err
==
EINTR
||
(
EMPER_LINUX_GE
(
"5.15.43"
)
&&
err
==
ECANCELED
),
"Unexpected err: "
<<
strerror
(
err
)
<<
"("
<<
err
<<
")"
);
emper
::
io
::
closeAndForget
(
efd
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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