google / google/or-tools

CMake: util/fp_utils_test.cc failed (NanDetection) on most distro.

Open
#5,392 3 comments 0 reactions 2 assignees Claimed by @bdb-git View on GitHub
Bug Build: CMake OS: Linux
Dominant language
C++
Stars
14.1k
Forks
2.5k
Avg merge
8h 39m
Merged PRs (30d)
72

Description

cxx_util_fp_utils_test (Failed)

typical trace:
```
#12 2.019 Start 15: cxx_util_fp_utils_test
#12 3.195 15/431 Test #15: cxx_util_fp_utils_test ...........................................***Failed 1.18 sec
#12 3.195 Running main() from /home/project/build/_deps/googletest-src/googletest/src/gtest_main.cc
#12 3.195 [==========] Running 28 tests from 12 test suites.
#12 3.195 [----------] Global test environment set-up.
#12 3.195 [----------] 4 tests from ScopedFpEnv
#12 3.195 [ RUN ] ScopedFpEnv.NoDetection
#12 3.195 [ OK ] ScopedFpEnv.NoDetection (0 ms)
#12 3.195 [ RUN ] ScopedFpEnv.NanDetection
#12 3.195 /home/project/ortools/util/fp_utils_test.cc:67: Failure
#12 3.195 Death test: { const double x = GenerateNaN(); switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal::CmpHelperNE("x", "x", x, x))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/project/ortools/util/fp_utils_test.cc", 70, gtest_ar.failure_message()) = ::testing::Message(); }
#12 3.195 Result: failed to die.
#12 3.195 Error msg:
#12 3.195 [ DEATH ]
#12 3.195
#12 3.195 [ FAILED ] ScopedFpEnv.NanDetection (2 ms)
#12 3.195 [ RUN ] ScopedFpEnv.DivisionByZeroDetection
#12 3.195 [ OK ] ScopedFpEnv.DivisionByZeroDetection (105 ms)
#12 3.195 [ RUN ] ScopedFpEnv.NanDetectionDivisionByZeroDetection
#12 3.195 /home/project/ortools/util/fp_utils_test.cc:67: Failure
#12 3.195 Death test: { const double x = GenerateNaN(); switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal::CmpHelperNE("x", "x", x, x))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/project/ortools/util/fp_utils_test.cc", 70, gtest_ar.failure_message()) = ::testing::Message(); }
#12 3.195 Result: failed to die.
#12 3.195 Error msg:
#12 3.195 [ DEATH ]
#12 3.195
#12 3.195 [ FAILED ] ScopedFpEnv.NanDetectionDivisionByZeroDetection (112 ms)
...
#12 3.195 [----------] Global test environment tear-down
#12 3.195 [==========] 28 tests from 12 test suites ran. (1143 ms total)
#12 3.195 [ PASSED ] 26 tests.
#12 3.195 [ FAILED ] 2 tests, listed below:
#12 3.195 [ FAILED ] ScopedFpEnv.NanDetection
#12 3.195 [ FAILED ] ScopedFpEnv.NanDetectionDivisionByZeroDetection
...
218.1 The following tests FAILED:
218.1 15 - cxx_util_fp_utils_test (Failed)
```

ref: https://github.com/google/or-tools/actions/runs/34895925223/job/104150220172

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.