summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorMattias Ellert <mattias.ellert@physics.uu.se>2023-12-08 09:15:27 (GMT)
committerBrad King <brad.king@kitware.com>2023-12-08 14:07:24 (GMT)
commit8f53526dec91c8f49e7399131efd6dc4837524dc (patch)
tree54224ce700192e240a8e180fc46639a0c7d58da5 /Tests/RunCMake
parent2d60f5c7a67fb7d0ddc32d2332ea098bce81ea4c (diff)
downloadCMake-8f53526dec91c8f49e7399131efd6dc4837524dc.zip
CMake-8f53526dec91c8f49e7399131efd6dc4837524dc.tar.gz
CMake-8f53526dec91c8f49e7399131efd6dc4837524dc.tar.bz2
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.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CTestTimeout/TestTimeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CTestTimeout/TestTimeout.c b/Tests/RunCMake/CTestTimeout/TestTimeout.c
index 425548c..da397f8 100644
--- a/Tests/RunCMake/CTestTimeout/TestTimeout.c
+++ b/Tests/RunCMake/CTestTimeout/TestTimeout.c
@@ -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)