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:
parent
6dfb48d416
commit
ddbb110e87
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue