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:
Justus Winter 2016-12-22 15:48:07 +01:00
parent b79274a3b7
commit b0e14bd6ff
2 changed files with 4 additions and 6 deletions

View File

@ -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 {

View File

@ -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.