mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +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 (x == sc->NIL) {
|
||||||
/*--
|
if (y != sc->NIL) {
|
||||||
* if (y != sc->NIL) {
|
Error_0(sc, "too many arguments");
|
||||||
* Error_0(sc,"too many arguments");
|
}
|
||||||
* }
|
|
||||||
*/
|
|
||||||
} else if (is_symbol(x))
|
} else if (is_symbol(x))
|
||||||
new_slot_in_env(sc, x, y);
|
new_slot_in_env(sc, x, y);
|
||||||
else {
|
else {
|
||||||
|
@ -610,7 +610,7 @@
|
|||||||
(seek logfd 0 SEEK_SET)
|
(seek logfd 0 SEEK_SET)
|
||||||
(splice logfd STDERR_FILENO)
|
(splice logfd STDERR_FILENO)
|
||||||
(close logfd))
|
(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
|
;; Run the setup target to create an environment, then run all given
|
||||||
;; tests in parallel.
|
;; tests in parallel.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user