diff options
author | Justus Winter <[email protected]> | 2016-12-22 14:48:07 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-01-02 10:02:34 +0000 |
commit | b0e14bd6ff8401b12b2b39f75aef94d3ad28017f (patch) | |
tree | 829201ab13c670529437563911892968fd66f1ce /tests/gpgscm/scheme.c | |
parent | gpgscm: Add 'finally', rework all macros. (diff) | |
download | gnupg-b0e14bd6ff8401b12b2b39f75aef94d3ad28017f.tar.gz gnupg-b0e14bd6ff8401b12b2b39f75aef94d3ad28017f.zip |
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 <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
-rw-r--r-- | tests/gpgscm/scheme.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index 7cd521741..c4725dbb4 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -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 { |