Skip to content
Snippets Groups Projects
Commit cde093a6 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[tests] Lower required kernel version of ECANCELED in TimeoutTest

My system running 5.15.43 also returns ECANCELED.
parent e4042ad4
No related branches found
No related tags found
1 merge request!392Kickoff context using 'jmp' instead of 'ret' and fix logic bug and other bugs in ContextManager that prevented using the MemoryManager
Pipeline #83556 failed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment