1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

ports test tries to mutate a read-only string

* test-suite/tests/ports.test ("valid wide mode string"): copy string
This commit is contained in:
Michael Gran 2017-04-04 08:56:34 -07:00
parent 6dfb48d416
commit ddbb110e87

View file

@ -315,7 +315,7 @@
(pass-if "valid wide mode string"
;; Pass 'open-file' a valid mode string, but as a wide string.
(let ((mode "λ"))
(let ((mode (string-copy "λ")))
(string-set! mode 0 #\r)
(let ((port (open-file "/dev/null" mode)))
(and (input-port? port)