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
1 changed file:
Changes:
| ... | ... | @@ -47,6 +47,9 @@ |
| 47 | 47 | (assert-false fd)
|
| 48 | 48 | (assert-true (and (integerp errno) (plusp errno)))))
|
| 49 | 49 | |
| 50 | +;; Darwin allows any number of X's (including 0!) in the template but
|
|
| 51 | +;; Linux requires exactly 6. Hence skip this test.
|
|
| 52 | +#-darwin
|
|
| 50 | 53 | (define-test mkstemp.bad-template
|
| 51 | 54 | (:tag :issues)
|
| 52 | 55 | (multiple-value-bind (fd errno)
|
| ... | ... | @@ -54,9 +57,8 @@ |
| 54 | 57 | ;; The template doesn't have enough X's so the FD should be NIL,
|
| 55 | 58 | ;; and a positive Unix errno value should be returned.
|
| 56 | 59 | ;;
|
| 57 | - ;; Note that Darwin allows any number of X's in the template but
|
|
| 58 | - ;; Linux requires exactly 6. Just test with no X's to handle all
|
|
| 59 | - ;; OSes.
|
|
| 60 | + ;; Note that Darwin allows any number of X's (including 0!) in the
|
|
| 61 | + ;; template but Linux requires exactly 6.
|
|
| 60 | 62 | (assert-false fd)
|
| 61 | 63 | (assert-true (and (integerp errno) (plusp errno)))))
|
| 62 | 64 | |
| ... | ... | @@ -98,6 +100,9 @@ |
| 98 | 100 | (assert-false result)
|
| 99 | 101 | (assert-true (and (integerp errno) (plusp errno)))))
|
| 100 | 102 | |
| 103 | +;; Darwin allows any number of X's (including 0!) in the template but
|
|
| 104 | +;; Linux requires exactly 6. Hence skip this test.
|
|
| 105 | +#-darwin
|
|
| 101 | 106 | (define-test mkdtemp.bad-template
|
| 102 | 107 | (:tag :issues)
|
| 103 | 108 | (multiple-value-bind (result errno)
|