Re: [PATCH] unit-tests/logging.logger: Bugfix: Use "mkstemp!" with Guile 2

Maxim Cournoyer <[email protected]> Thu, 06 Feb 2025 14:25:24 +0900
Newsgroups gmane.lisp.guile.devel
Message-ID <[email protected]>
Hi Artyom,

"Artyom V. Poptsov" <[email protected]> writes:

> When tests are run with Guile 2 "logging.logger.scm" would always fail
> due to undefined reference to "mkstemp" that was introduced only in
> Guile 3.  In Guile 2 the procedure is called "mkstemp!".  This patch
> fixes that by adding an additional runtime check.
>
> * unit-tests/logging.logger.scm (call-with-temporary-file): Bugfix:
>   Check Guile major version and use "mkstemp!" when Guile 2 is used;
>   use "mkstemp" otherwise.

Finally applied to the master branch (the 'devel' branch is no more).

-- 
Thanks,
Maxim