
Raymond Toy pushed to branch issue-375-mkstemp-return-filename at cmucl / cmucl Commits: 7698e84e by Raymond Toy at 2025-02-07T17:57:05-08:00 Disable some tests on Darwin I tested these on Darwin, and the templates "test-" and ""test-XXXXXXa" succeed by returning exactly these files. Another call would then generate an error since we can't create new files. So it seems on Darwin, any template will work but the only time we get a filename different from the template is if the template ends in X's. - - - - - 1 changed file: - tests/unix.lisp Changes: ===================================== tests/unix.lisp ===================================== @@ -47,6 +47,8 @@ (assert-false fd) (assert-true (and (integerp errno) (plusp errno))))) +;; Darwin accepts this template. It creates the file "test-". +#-darwin (define-test mkstemp.bad-template (:tag :issues) (multiple-value-bind (fd errno) @@ -56,6 +58,9 @@ (assert-false fd) (assert-true (and (integerp errno) (plusp errno))))) +;; Darwin accepts this template and just creates the file +;; "test-XXXXXXa". (The next call would return an error.) +#-darwin (define-test mkstemp.bad-template.2 (:tag :issues) (multiple-value-bind (fd errno) @@ -112,6 +117,8 @@ (assert-false result) (assert-true (and (integerp errno) (plusp errno))))) +;; Same issue with mkdtemp as with mkstemp above on Darwin. +#-darwin (define-test mkdtemp.bad-template.2 (:tag :issues) (multiple-value-bind (result errno) View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/7698e84e6076499d04be7dd9... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/7698e84e6076499d04be7dd9... You're receiving this email because of your account on gitlab.common-lisp.net.