
Raymond Toy pushed to branch issue-375-mkstemp-return-filename at cmucl / cmucl Commits: 15501db4 by Raymond Toy at 2025-02-01T09:11:11-08:00 Update bad template tests for Darwin Darwin seems to require at least one X in the template, unlike Linux which requires 6. Update the test for bad templates for both mkstemp and mkdtemp to have no X's in the template. - - - - - 1 changed file: - tests/unix.lisp Changes: ===================================== tests/unix.lisp ===================================== @@ -30,9 +30,13 @@ (define-test mkstemp.bad-template (:tag :issues) (multiple-value-bind (fd errno) - (unix::unix-mkstemp "test-XXXXX") + (unix::unix-mkstemp "test-") ;; 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. (assert-false fd) (assert-true (and (integerp errno) (plusp errno))))) @@ -58,7 +62,8 @@ (define-test mkdtemp.bad-template (:tag :issues) (multiple-value-bind (result errno) - (unix::unix-mkdtemp "dir-XXXXX") + (unix::unix-mkdtemp "dir-") + ;; No X's in template, like for mkstemp.bad-template test. (assert-false result) (assert-true (and (integerp errno) (plusp errno))))) View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/15501db4886ad26a943e1c04... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/15501db4886ad26a943e1c04... You're receiving this email because of your account on gitlab.common-lisp.net.