bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* strtod, strtold tests: Avoid a test failure on native Windows
@ 2024-02-22  0:13 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2024-02-22  0:13 UTC (permalink / raw)
  To: bug-gnulib

In a testdir of strtod and strtold, I see test failures on native Windows
(mingw, MSVC 14). The reason appears to be that the native setlocale()
function there ignores the environment variables that the shell script
sets; it looks only at the system settings.

This patch fixes it.

2024-02-21  Bruno Haible  <bruno@clisp.org>

	strtod, strtold tests: Avoid a test failure on native Windows.
	* modules/strtod-tests (Depends-on): Add setlocale.
	* modules/strtold-tests (Depends-on): Likewise.

diff --git a/modules/strtod-tests b/modules/strtod-tests
index cbc8030ca4..b6fc4585bf 100644
--- a/modules/strtod-tests
+++ b/modules/strtod-tests
@@ -12,6 +12,7 @@ Depends-on:
diff --git a/modules/strtold-tests b/modules/strtold-tests
index 1c270954ad..66774147d3 100644
--- a/modules/strtold-tests
+++ b/modules/strtold-tests
@@ -12,6 +12,7 @@ Depends-on:

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-22  0:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22  0:13 strtod, strtold tests: Avoid a test failure on native Windows Bruno Haible

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).