aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-11-23 15:18:32 +0100
committerLudovic Courtès <ludo@gnu.org>2023-11-25 16:29:25 +0100
commita14dafaa01497f733419b5a738baf5822544ebc4 (patch)
treed1b133b668e0092be97897aba0f04e8d05ca76e4 /tests
parent1566e00fbc87ba7b6320be7f587e2e5e5c082b38 (diff)
downloadguix-a14dafaa01497f733419b5a738baf5822544ebc4.tar
guix-a14dafaa01497f733419b5a738baf5822544ebc4.tar.gz
syscalls: Add fallback case for ‘terminal-string-width’.
This makes ‘terminal-string-width’ synonymous with ‘string-length’ when running one a statically-linked Guile, as is the case in some unit tests, instead of throwing ENOSYS. * guix/build/syscalls.scm (terminal-string-width): Use ‘dynamic-func’ and ‘pointer->procedure’ instead of ‘syscall->procedure’. Return ‘string-length’ when one of the ‘dynamic-func’ calls fails. Change-Id: Icf55c9e7c34b46fac91b665fb4a2ecb02160f22e
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions