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
1 changed file:
Changes:
| ... | ... | @@ -47,6 +47,8 @@ |
| 47 | 47 | (assert-false fd)
|
| 48 | 48 | (assert-true (and (integerp errno) (plusp errno)))))
|
| 49 | 49 | |
| 50 | +;; Darwin accepts this template. It creates the file "test-".
|
|
| 51 | +#-darwin
|
|
| 50 | 52 | (define-test mkstemp.bad-template
|
| 51 | 53 | (:tag :issues)
|
| 52 | 54 | (multiple-value-bind (fd errno)
|
| ... | ... | @@ -56,6 +58,9 @@ |
| 56 | 58 | (assert-false fd)
|
| 57 | 59 | (assert-true (and (integerp errno) (plusp errno)))))
|
| 58 | 60 | |
| 61 | +;; Darwin accepts this template and just creates the file
|
|
| 62 | +;; "test-XXXXXXa". (The next call would return an error.)
|
|
| 63 | +#-darwin
|
|
| 59 | 64 | (define-test mkstemp.bad-template.2
|
| 60 | 65 | (:tag :issues)
|
| 61 | 66 | (multiple-value-bind (fd errno)
|
| ... | ... | @@ -112,6 +117,8 @@ |
| 112 | 117 | (assert-false result)
|
| 113 | 118 | (assert-true (and (integerp errno) (plusp errno)))))
|
| 114 | 119 | |
| 120 | +;; Same issue with mkdtemp as with mkstemp above on Darwin.
|
|
| 121 | +#-darwin
|
|
| 115 | 122 | (define-test mkdtemp.bad-template.2
|
| 116 | 123 | (:tag :issues)
|
| 117 | 124 | (multiple-value-bind (result errno)
|