GNU bug report logs - #72365
srfi-64: test-on-bad-end-name-simple is not allowed to raise an exception

Previous Next

Package: guile;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Tue, 30 Jul 2024 19:53:01 UTC

Severity: normal

Done: Tomas Volf <~@wolfsden.cz>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tomas Volf <~@wolfsden.cz>
To: 72365 <at> debbugs.gnu.org
Subject: bug#72365: srfi-64: test-on-bad-end-name-simple is not allowed to raise an exception
Date: Tue, 30 Jul 2024 21:51:53 +0200
Hello,

I think I found a bug in (srfi srfi-64) module shipped with GNU Guile.

The specification says the following about the simple test runner:

> Creates a new simple test-runner, that prints errors and a summary on the
> standard output port.

It does not mention that it can signal errors, so I believe the following should
just print to the terminal:

    (use-modules (srfi srfi-64))
    (test-on-bad-end-name-simple (test-runner-null) "x" "y")

However is signals an error instead:

    Backtrace:
    In ice-9/boot-9.scm:
      1752:10  6 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
    In unknown file:
               5 (apply-smob/0 #<thunk 7f6cf05a9300>)
    In ice-9/boot-9.scm:
        724:2  4 (call-with-prompt ("prompt") #<procedure 7f6cf05b6280 at ice-9/eval.scm:330:…> …)
    In ice-9/eval.scm:
        619:8  3 (_ #(#(#<directory (guile-user) 7f6cf05acc80>)))
    In ice-9/boot-9.scm:
       2836:4  2 (save-module-excursion #<procedure 7f6cf059d300 at ice-9/boot-9.scm:4393:3 ()>)
      4388:12  1 (_)
    In srfi/srfi-64/testing.scm:
       375:14  0 (test-on-bad-end-name-simple _ _ _)

    srfi/srfi-64/testing.scm:375:14: In procedure test-on-bad-end-name-simple:
    test-end x does not match test-begin y

Have a nice day
Tomas Volf




This bug report was last modified 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.