diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-06-25 23:05:00 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-27 11:14:40 +0200 |
commit | 4593f5a654b4e59c5025cc4f99914e24e82515a4 (patch) | |
tree | 58e5584c28d45650c99cd60a015c339d7e53b6d3 /tests | |
parent | 8874faaaac665100a095ef25e39c9a389f5a397f (diff) | |
download | patches-4593f5a654b4e59c5025cc4f99914e24e82515a4.tar patches-4593f5a654b4e59c5025cc4f99914e24e82515a4.tar.gz |
syscalls: Add 'terminal-rows'.
* guix/build/syscalls.scm (terminal-dimension): New procedure.
(terminal-columns): Rewrite in terms of 'terminal-dimension'.
(terminal-rows): New procedure.
* tests/syscalls.scm ("terminal-rows"): New test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/syscalls.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/syscalls.scm b/tests/syscalls.scm index 3e267c9f01..eeb223b950 100644 --- a/tests/syscalls.scm +++ b/tests/syscalls.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2015 David Thompson <davet@gnu.org> ;;; ;;; This file is part of GNU Guix. @@ -538,6 +538,9 @@ (> (terminal-columns (open-input-string "Join us now, share the software!")) 0)) +(test-assert "terminal-rows" + (> (terminal-rows) 0)) + (test-assert "utmpx-entries" (match (utmpx-entries) (((? utmpx? entries) ...) |