Raymond Toy pushed to branch issue-375-mkstemp-return-filename at cmucl / cmucl Commits: 7275edf3 by Raymond Toy at 2025-02-02T16:01:15-08:00 Disable bad template tests on Darwin Darwin bizarrely allows 0(!) or more X's in the template, so our test for a bad template can't work on Darwin. Disable them. - - - - - 1 changed file: - tests/unix.lisp Changes: ===================================== tests/unix.lisp ===================================== @@ -47,6 +47,9 @@ (assert-false fd) (assert-true (and (integerp errno) (plusp errno))))) +;; Darwin allows any number of X's (including 0!) in the template but +;; Linux requires exactly 6. Hence skip this test. +#-darwin (define-test mkstemp.bad-template (:tag :issues) (multiple-value-bind (fd errno) @@ -54,9 +57,8 @@ ;; The template doesn't have enough X's so the FD should be NIL, ;; and a positive Unix errno value should be returned. ;; - ;; Note that Darwin allows any number of X's in the template but - ;; Linux requires exactly 6. Just test with no X's to handle all - ;; OSes. + ;; Note that Darwin allows any number of X's (including 0!) in the + ;; template but Linux requires exactly 6. (assert-false fd) (assert-true (and (integerp errno) (plusp errno))))) @@ -98,6 +100,9 @@ (assert-false result) (assert-true (and (integerp errno) (plusp errno))))) +;; Darwin allows any number of X's (including 0!) in the template but +;; Linux requires exactly 6. Hence skip this test. +#-darwin (define-test mkdtemp.bad-template (:tag :issues) (multiple-value-bind (result errno) View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/7275edf3ac0d0ab37d1dc79d... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/7275edf3ac0d0ab37d1dc79d... You're receiving this email because of your account on gitlab.common-lisp.net.