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 | 56787d898a6911e62b35c3054a22df1a913c26cf (patch) | |
tree | 4732e1687d026869592eddc7bba3219a119d91d2 | |
parent | gpgscm: Add 'finally', rework all macros. (diff) | |
download | libgpg-error-56787d898a6911e62b35c3054a22df1a913c26cf.tar.gz libgpg-error-56787d898a6911e62b35c3054a22df1a913c26cf.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 '')
-rw-r--r-- | scheme.c | 8 | ||||
-rw-r--r-- | tests.scm | 2 |
2 files changed, 4 insertions, 6 deletions
@@ -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. |