aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/verify.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openpgp/verify.scm')
-rwxr-xr-xtests/openpgp/verify.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/openpgp/verify.scm b/tests/openpgp/verify.scm
index e8aa7df35..eb984b110 100755
--- a/tests/openpgp/verify.scm
+++ b/tests/openpgp/verify.scm
@@ -26,12 +26,14 @@
"Checking bogus signature"
(lambda (char)
(lettmp (x)
- (pipe:do
- (pipe:spawn `(,(tool 'mktdata) --char ,char "64"))
- (pipe:write-to x (logior O_WRONLY O_CREAT O_BINARY) #o600))
+ (call-with-binary-output-file
+ x
+ (lambda (port)
+ (display (make-string 64 (integer->char (string->number char)))
+ port)))
(if (= 0 (call `(,@GPG --verify ,x data-500)))
(error "no error code from verify"))))
- '("0x2d" "0xca"))
+ '("#x2d" "#xca"))
;; A plain signed message created using
;; echo abc | gpg --homedir . --passphrase-fd 0 -u Alpha -z0 -sa msg