unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob ba4e27511b76c71efb0ea261f7cb26a203c76c0e 989 bytes (raw)
name: packages/patches/abseil-cpp-20220623.1-no-kepsilon-i686.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
After an upstream code dump on 20220314 when this code was added this test started to fail on i686-linux.

diff --git a/absl/random/uniform_real_distribution_test.cc b/absl/random/uniform_real_distribution_test.cc
index 260aac96..0abef9b0 100644
--- a/absl/random/uniform_real_distribution_test.cc
+++ b/absl/random/uniform_real_distribution_test.cc
@@ -228,6 +228,8 @@ TYPED_TEST(UniformRealDistributionTest, ViolatesPreconditionsDeathTest) {
 
 #endif  // GTEST_HAS_DEATH_TEST
 #if defined(NDEBUG)
+  // Except apparently not with 387 math
+#if !((defined(__i386__) || defined(_M_IX86)) && FLT_EVAL_METHOD != 0)
   // opt-mode, for invalid parameters, will generate a garbage value,
   // but should not enter an infinite loop.
   absl::InsecureBitGen gen;
@@ -243,6 +245,7 @@ TYPED_TEST(UniformRealDistributionTest, ViolatesPreconditionsDeathTest) {
     // Infinite result.
     EXPECT_FALSE(std::isfinite(x)) << x;
   }
+#endif  // skip on i386
 #endif  // NDEBUG
 }
 #ifdef _MSC_VER

debug log:

solving ba4e27511b76c71efb0ea261f7cb26a203c76c0e ...
found ba4e27511b76c71efb0ea261f7cb26a203c76c0e in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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