[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 42/55: Disable test for current value of setitimer on Cy
From: |
Andy Wingo |
Subject: |
[Guile-commits] 42/55: Disable test for current value of setitimer on Cygwin |
Date: |
Thu, 23 May 2019 11:52:43 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit d4fd9adcacd7ff1955aaed5ce42b26b89678aa2a
Author: Michael Gran <address@hidden>
Date: Sat Feb 23 23:23:19 2019 -0800
Disable test for current value of setitimer on Cygwin
* test-suite/tests/signals.test ("current itimers are 0"): throws unresolved
for cygwin
---
test-suite/tests/signals.test | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/test-suite/tests/signals.test b/test-suite/tests/signals.test
index ac730a9..0b5570a 100644
--- a/test-suite/tests/signals.test
+++ b/test-suite/tests/signals.test
@@ -1,6 +1,6 @@
;;;; signals.test --- test suite for Guile's signal functions -*- scheme
-*-
;;;;
-;;;; Copyright (C) 2009, 2014, 2017 Free Software Foundation, Inc.
+;;;; Copyright (C) 2009, 2014, 2017, 2019 Free Software Foundation, Inc.
;;;;
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@@ -37,14 +37,23 @@
(when (defined? 'setitimer)
(with-test-prefix "setitimer"
(with-test-prefix "current itimers are 0"
+
(pass-if "ITIMER_REAL"
- (equal? (setitimer ITIMER_REAL 0 0 0 0)
- '((0 . 0) (0 . 0))))
+ ;; setitimer may have already been called in other tests. For
+ ;; some versions of Cygwin, the return value of setitimer is
+ ;; invalid after an alarm has occurred. See
+ ;; https://www.cygwin.com/ml/cygwin/2019-02/msg00395.html
+ (if (string-contains %host-type "cygwin")
+ (throw 'unresolved)
+ (equal? (setitimer ITIMER_REAL 0 0 0 0)
+ '((0 . 0) (0 . 0)))))
+
(pass-if "ITIMER_VIRTUAL"
(if (not (provided? 'ITIMER_VIRTUAL))
(throw 'unsupported)
(equal? (setitimer ITIMER_VIRTUAL 0 0 0 0)
'((0 . 0) (0 . 0)))))
+
(pass-if "ITIMER_PROF"
(if (not (provided? 'ITIMER_PROF))
(throw 'unsupported)
- [Guile-commits] 08/55: Fix list validation of *list->bytevector procedures., (continued)
- [Guile-commits] 08/55: Fix list validation of *list->bytevector procedures., Andy Wingo, 2019/05/23
- [Guile-commits] 13/55: Update SRFI-19 leap second table., Andy Wingo, 2019/05/23
- [Guile-commits] 05/55: Fix 'atomic-box-compare-and-swap!'., Andy Wingo, 2019/05/23
- [Guile-commits] 26/55: Add texinfo dependency to README, Andy Wingo, 2019/05/23
- [Guile-commits] 27/55: Bootstrap optimization, Andy Wingo, 2019/05/23
- [Guile-commits] 32/55: Fix tests for SRFI-19 date->string ~N, Andy Wingo, 2019/05/23
- [Guile-commits] 33/55: Do not warn the user when 'madvise' returns ENOSYS., Andy Wingo, 2019/05/23
- [Guile-commits] 30/55: Update (ice-9 match) to include selected bug fixes from upstream., Andy Wingo, 2019/05/23
- [Guile-commits] 31/55: Support ~N in SRFI-19 string->date, Andy Wingo, 2019/05/23
- [Guile-commits] 28/55: Documentation fixes, Andy Wingo, 2019/05/23
- [Guile-commits] 42/55: Disable test for current value of setitimer on Cygwin,
Andy Wingo <=
- [Guile-commits] 29/55: Fix spelling of ellipsis in (ice-9 match)., Andy Wingo, 2019/05/23
- [Guile-commits] 53/55: put-u8: Always write a single byte, regardless of the port encoding., Andy Wingo, 2019/05/23
- [Guile-commits] 52/55: Optimize fixnum exact integer square roots., Andy Wingo, 2019/05/23
- [Guile-commits] 44/55: Avoid passing NULL to 'memcpy' and 'memcmp'., Andy Wingo, 2019/05/23
- [Guile-commits] 14/55: Fix typos, indentation and error reporting in SRFI-19., Andy Wingo, 2019/05/23
- [Guile-commits] 54/55: Strings, i18n: Limit the use of alloca to approximately 8 kilobytes., Andy Wingo, 2019/05/23
- [Guile-commits] 49/55: Fix typo in comment., Andy Wingo, 2019/05/23
- [Guile-commits] 47/55: Reimplement SCM_MAKE_CHAR to evaluate its argument only once., Andy Wingo, 2019/05/23
- [Guile-commits] 51/55: Avoid 'with-latin1-locale' in binary I/O tests., Andy Wingo, 2019/05/23
- [Guile-commits] 15/55: Use 'scm_from_utf8_{string, symbol, keyword}' for C string literals., Andy Wingo, 2019/05/23