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

Merge branch 'fix-timeout-test-linux-5.16' into 'master'

[TimeoutTest] fix timeout return assertion for linux 5.16

See merge request i4/manycore/emper!310
parents 0bd272ba a2da42c5
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
#include <cerrno>
#include <cstdint>
#include <cstring>
#include <memory>
#include "Common.hpp"
#include "CountingPrivateSemaphore.hpp"
......@@ -15,6 +16,7 @@
#include "emper.hpp"
#include "fixtures/assert.hpp"
#include "io.hpp"
#include "lib/LinuxVersion.hpp"
using emper::io::ReadFuture;
using emper::io::TimeoutWrapper;
......@@ -122,7 +124,8 @@ void writeTest() {
ASSERT(res == -1);
// write requests can't be canceled when in execution so this
// will return as interupted
ASSERT(errno == EINTR);
const int err = errno;
ASSERT(err == EINTR || (EMPER_LINUX_GE("5.16.0") && err == ECANCELED));
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