aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-04-20 15:32:25 +0000
committerJustus Winter <[email protected]>2017-04-24 13:47:29 +0000
commitb67d1a3f36f2b15fb75de613942668b71cad1bd7 (patch)
treeaa7bdaf444c133c72957b343405b7d92933d28fa
parentgpgscm: Improve syntax checking. (diff)
downloadlibgpg-error-b67d1a3f36f2b15fb75de613942668b71cad1bd7.tar.gz
libgpg-error-b67d1a3f36f2b15fb75de613942668b71cad1bd7.zip
gpgscm: Fix test.
* tests/gpgscm/t-child.scm: Use 'string-length' on the string. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--t-child.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/t-child.scm b/t-child.scm
index 93208f4..fd1dcc3 100644
--- a/t-child.scm
+++ b/t-child.scm
@@ -107,12 +107,12 @@
(pipe:spawn `(,child stdout4096))
(pipe:spawn `(,child cat)))
(tr:call-with-content (lambda (c)
- (assert (= 4096 (length c))))))
+ (assert (= 4096 (string-length c))))))
(tr:do
(tr:pipe-do
(pipe:spawn `(,child stdout8192))
(pipe:spawn `(,child cat)))
(tr:call-with-content (lambda (c)
- (assert (= 8192 (length c))))))
+ (assert (= 8192 (string-length c))))))
(echo "All good.")