mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpgscm: Fail if too many arguments are given.
* tests/gpgscm/scheme.c (opexe_0): Enable check. * tests/gpgscm/tests.scm (test::report): Remove superfluous argument. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
b79274a3b7
commit
b0e14bd6ff
@ -3364,11 +3364,9 @@ static pointer opexe_0(scheme *sc, enum scheme_opcodes op) {
|
||||
}
|
||||
}
|
||||
if (x == sc->NIL) {
|
||||
/*--
|
||||
* if (y != sc->NIL) {
|
||||
* Error_0(sc,"too many arguments");
|
||||
* }
|
||||
*/
|
||||
if (y != sc->NIL) {
|
||||
Error_0(sc, "too many arguments");
|
||||
}
|
||||
} else if (is_symbol(x))
|
||||
new_slot_in_env(sc, x, y);
|
||||
else {
|
||||
|
@ -610,7 +610,7 @@
|
||||
(seek logfd 0 SEEK_SET)
|
||||
(splice logfd STDERR_FILENO)
|
||||
(close logfd))
|
||||
(echo (string-append (status retcode) ":") name))))))
|
||||
(echo (string-append (status) ":") name))))))
|
||||
|
||||
;; Run the setup target to create an environment, then run all given
|
||||
;; tests in parallel.
|
||||
|
Loading…
x
Reference in New Issue
Block a user