]> Savannah Git Hosting - gnulib.git/commitdiff
expl tests: Avoid test failure on NetBSD 10.0/i386.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Apr 2024 13:16:27 +0000 (15:16 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 11:13:58 +0000 (13:13 +0200)
* tests/test-exp.h (test_function): Allow more deviation on NetBSD/i386.

ChangeLog
tests/test-exp.h

index 306e4a610b8d8ab7e434acd94dc10ba951435551..d4d3831cac58759253a12010d2fac3ca6a70ddf7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-05  Bruno Haible  <bruno@clisp.org>
+
+       expl tests: Avoid test failure on NetBSD 10.0/i386.
+       * tests/test-exp.h (test_function): Allow more deviation on NetBSD/i386.
+
 2024-04-03  Pádraig Brady  <P@draigBrady.com>
 
        quotearg: fix shell-escape quoting with single quotes
index e018f4e1e3dd660f26eeb55cfca3c468c2235027..f7ef2a4063768bd02997538a5def546fef330573 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of exp*() function family.
-   Copyright (C) 2012-2023 Free Software Foundation, Inc.
+   Copyright (C) 2012-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -63,7 +63,9 @@ test_function (void)
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
       (sizeof (DOUBLE) > sizeof (double) ?
-#if defined __i386__ && defined __FreeBSD__
+#if defined __i386__ && defined __NetBSD__
+       L_(25000.0)
+#elif defined __i386__ && defined __FreeBSD__
        L_(2400.0)
 #else
        L_(24.0)