mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-13 01:39:58 -06:00
Tests: Do not expect EINTR when sleep is interrupted on GNU/Hurd
Previously `RunCMake.CTestTimeout` failed on GNU/Hurd because the `sleep` command does not set `errno` to `EINTR` when interrupted by a signal, which is a Linux-specific feature.
This commit is contained in:
committed by
Brad King
parent
2d60f5c7a6
commit
8f53526dec
@@ -45,7 +45,7 @@ int main(void)
|
||||
#if defined(_WIN32)
|
||||
Sleep((TIMEOUT + 4) * 1000);
|
||||
#elif defined(SIGNAL_IGNORE)
|
||||
# if defined(__CYGWIN__) || defined(__sun__)
|
||||
# if defined(__CYGWIN__) || defined(__sun__) || defined(__GNU__)
|
||||
# define ERRNO_IS_EINTR (errno == EINTR || errno == 0)
|
||||
# else
|
||||
# define ERRNO_IS_EINTR (errno == EINTR)
|
||||
|
||||
Reference in New Issue
Block a user