unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#72365: srfi-64: test-on-bad-end-name-simple is not allowed to raise an exception
@ 2024-07-30 19:51 Tomas Volf
  2024-09-30 13:24 ` Taylan Kammer
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Volf @ 2024-07-30 19:51 UTC (permalink / raw)
  To: 72365

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-02 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30 19:51 bug#72365: srfi-64: test-on-bad-end-name-simple is not allowed to raise an exception Tomas Volf
2024-09-30 13:24 ` Taylan Kammer
2024-10-02 12:28   ` Tomas Volf
2024-10-02 21:07     ` Taylan Kammer
2024-10-02 22:17       ` Tomas Volf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).