mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Rename 'error' to 'fail'.
* tests/gpgscm/tests.scm (error): Rename to 'fail'. 'error' is a primitive function (an opcode) of the TinySCHEME vm, and 'error' is also defined by R6RS. Better avoid redefining that. Fix all call sites. * tests/openpgp/4gb-packet.scm: Adapt. * tests/openpgp/decrypt-multifile.scm: Likewise. * tests/openpgp/ecc.scm: Likewise. * tests/openpgp/export.scm: Likewise. * tests/openpgp/gpgtar.scm: Likewise. * tests/openpgp/gpgv-forged-keyring.scm: Likewise. * tests/openpgp/import.scm: Likewise. * tests/openpgp/issue2015.scm: Likewise. * tests/openpgp/issue2346.scm: Likewise. * tests/openpgp/issue2419.scm: Likewise. * tests/openpgp/key-selection.scm: Likewise. * tests/openpgp/mds.scm: Likewise. * tests/openpgp/multisig.scm: Likewise. * tests/openpgp/setup.scm: Likewise. * tests/openpgp/signencrypt.scm: Likewise. * tests/openpgp/ssh-import.scm: Likewise. * tests/openpgp/tofu.scm: Likewise. * tests/openpgp/verify.scm: Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
89ac071eb4
commit
5b5d881f47
19 changed files with 38 additions and 38 deletions
|
@ -42,7 +42,7 @@
|
|||
(if (> (*verbose*) 0)
|
||||
(apply info msg)))
|
||||
|
||||
(define (error . msg)
|
||||
(define (fail . msg)
|
||||
(apply info msg)
|
||||
(exit 1))
|
||||
|
||||
|
@ -325,7 +325,7 @@
|
|||
(lettmp (sink)
|
||||
(transformer source sink)
|
||||
(if (not (file=? source sink))
|
||||
(error "mismatch"))))
|
||||
(fail "mismatch"))))
|
||||
|
||||
;;
|
||||
;; Monadic pipe support.
|
||||
|
@ -440,7 +440,7 @@
|
|||
(define (tr:spawn input command)
|
||||
(lambda (tmpfiles source)
|
||||
(if (and (member '**in** command) (not source))
|
||||
(error (string-append (stringify cmd) " needs an input")))
|
||||
(fail (string-append (stringify cmd) " needs an input")))
|
||||
(let* ((t (make-temporary-file))
|
||||
(cmd (map (lambda (x)
|
||||
(cond
|
||||
|
@ -450,7 +450,7 @@
|
|||
(catch (list (cons t tmpfiles) t *error*)
|
||||
(call-popen cmd input)
|
||||
(if (and (member '**out** command) (not (file-exists? t)))
|
||||
(error (string-append (stringify cmd)
|
||||
(fail (string-append (stringify cmd)
|
||||
" did not produce '" t "'.")))
|
||||
(list (cons t tmpfiles) t #f)))))
|
||||
|
||||
|
@ -471,13 +471,13 @@
|
|||
(define (tr:assert-identity reference)
|
||||
(lambda (tmpfiles source)
|
||||
(if (not (file=? source reference))
|
||||
(error "mismatch"))
|
||||
(fail "mismatch"))
|
||||
(list tmpfiles source #f)))
|
||||
|
||||
(define (tr:assert-weak-identity reference)
|
||||
(lambda (tmpfiles source)
|
||||
(if (not (text-file=? source reference))
|
||||
(error "mismatch"))
|
||||
(fail "mismatch"))
|
||||
(list tmpfiles source #f)))
|
||||
|
||||
(define (tr:call-with-content function . args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue