bug#72373: srfi-64: test-assert evaluates test-name multiple times

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says the following regarding the test-assert: > >> Though the test-name is a string literal in the examples, it is an >> expression. It is evaluated only

bug#72380: srfi-64: test-end does not uninstall runner if on-final was modified

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification for test-end says: > >> Additionally, if the matching test-begin installed a new test-runner, then >> the >> test-end will uninstall it, after reporting

bug#72370: srfi-64: test-apply requires at least one specifier

2024-10-01 Thread Taylan Kammer
On 30.09.2024 20:50, Taylan Kammer wrote: > On 30.07.2024 21:51, Tomas Volf wrote: >> Hello, >> >> I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. >> >> The specification says the following regarding the test-apply: >> >>> If one or more specifiers are listed then only tests

bug#72374: srfi-64: test-apply does not accept convenience specifiers

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says the following regarding the test-apply: > >> If one or more specifiers are listed then only tests matching the specifiers >> are executed. > The spec

bug#72376: srfi-64: test-equal evaluates test-name multiple times

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says that test-equal is equivalent to: > >> (test-assert [test-name] (equal? expected test-expr)) > Hence the test-assert's requirement to evaluate test-n

bug#72379: srfi-64: test-approximate does not handle exceptions

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says that: > >> The test also fails if an exception is raised, assuming the implementation >> has >> a way to catch exceptions. > Guile has a way to catc

bug#72375: srfi-64: test-eqv evaluates test-name multiple times

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says that test-eqv is equivalent to: > >> (test-assert [test-name] (eqv? expected test-expr)) > Hence the test-assert's requirement to evaluate test-name

bug#72382: srfi-64: test-with-runner requires some decl-or-expr

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > test-with-runner has following signature: > > (test-with-runner runner decl-or-expr ...) > > That, according to syntax-case rules (and how test-apply works with the sam

bug#72378: srfi-64: top-level test-group does not work

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The test-group is defined as equivalent to: > > (if (not (test-to-skip% suite-name)) > (dynamic-wind > (lambda () (test-begin suite-name)) > (lamb

bug#72381: srfi-64: test-result-remove fails to remove property

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > When I try to remove a property from the result alist using this code: > > (use-modules (srfi srfi-64)) > (let ((r (test-runner-null))) > (test-result-set! r

bug#72377: srfi-64: test-eq evaluates test-name multiple times

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says that test-eq is equivalent to: > >> (test-assert [test-name] (eq? expected test-expr)) > Hence the test-assert's requirement to evaluate test-name on

bug#73582: guile-3.0 build system adding unnecessary pkg-config & guile-config compile flags

2024-10-01 Thread Wouter Bijlsma
Hello, I believe I may have found a bug in the guile 3.0 build system. When configuring and building on systems that have libgmp installed, the guile build system will add '-I$LIBGMP_PREFIX' to the set of compiler flags reported by 'pkg-config --cflags guile-3.0' (and hence also 'guile-config c

bug#73589: system* does not honor SIGINT restoration in child

2024-10-01 Thread Olivier Dion
Hi, Given the following C program: --8<---cut here---start->8--- #include #include int main(void) { struct sigaction act; sigaction(SIGINT, NULL, &act); printf("%p %p %p\n", act.sa_handler, SIG_IGN, SIG_DFL); } --8<---cut

bug#72371: srfi-64: test marked for skip and as expected failure has wrong result-kind in on-test-begin-function

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says the following regarding the test-result-kind: > >> If we've started on a new test, but don't have a result yet, then the result >> kind is 'xfail if

bug#72372: srfi-64: test-approximate evaluates test-name multiple times

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says the following regarding the test-approximate: > >> This is equivalent to (except that each argument is only evaluated once): >> >> >> (test-assert [t

bug#72383: srfi-64: test-runner-reset clobbers the run list

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > Test runner is specified as: > >> A test-runner is an object that runs a test-suite, and manages the state. The >> test group path, and the sets skip and expected-fail spec

bug#72384: srfi-64: test-end should not clear fail list

2024-10-01 Thread Taylan Kammer
On 30.07.2024 21:52, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > Reading the specification for test-expect-fail I do not see a mandate to clear > expect-fail list on test-end. test-skip does have such provision, but it is > lacking in t

bug#72366: srfi-64: on-bad-end-name-function has swapped arguments

2024-10-01 Thread Taylan Kammer
On 30.09.2024 16:04, Taylan Kammer wrote: > I've also decided to remove the check on whether the begin-name is true, > because as per spec it's not allowed to be false anyway, and IMO it should > call the bad-end-name callback if the begin-name was explicitly passed as #f > but the end-name is n

bug#72367: srfi-64: nested group not counted as one test

2024-10-01 Thread Taylan Kammer
On 30.09.2024 16:42, Taylan Kammer wrote: > On 30.07.2024 21:51, Tomas Volf wrote: >> Hello, >> >> I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. >> >> The specification says the following about the count argument to the >> test-begin >> form: >> >>> The optional count must