Skip to content
Snippets Groups Projects
Commit a2da42c5 authored by Florian Fischer's avatar Florian Fischer
Browse files

[TimeoutTest] fix timeout return assertion for linux 5.16

I could not identify the commit that changes this behavior but
it is reproducible on our bigboxes and my arch system.
parent 6a186f37
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