[libc-commits] [libc] [libc][math] implement `signbit` and math macro unit tests (PR #97791)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sat Jul 13 20:04:24 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-gcc-fullbuild-dbg` running on `libc-x86_64-debian-fullbuild` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/131/builds/2049

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[       OK ] LlvmLibcHashTest.SanityCheck (1 ms)
[ RUN      ] LlvmLibcHashTest.Avalanche
[       OK ] LlvmLibcHashTest.Avalanche (264 ms)
[ RUN      ] LlvmLibcHashTest.UniformLSB
[       OK ] LlvmLibcHashTest.UniformLSB (332 ms)
[ RUN      ] LlvmLibcHashTest.UniformMSB
[       OK ] LlvmLibcHashTest.UniformMSB (215 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[834/2504] Linking CXX executable projects/libc/test/include/libc.test.include.signbitf_test.__unit__.__build__
[835/2504] Running unit test libc.test.include.signbitf_test.__unit__
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.signbitf_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include/CMakeFiles/libc.test.include.signbitf_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include/libc.test.include.signbitf_test.__unit__.__build__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSignbitTest.SpecialNumbers
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include/SignbitTest.h:26: FAILURE
      Expected: func(-1)
      Which is: -2147483648
To be equal to: 1
      Which is: 1
[  FAILED  ] LlvmLibcSignbitTest.SpecialNumbers
Ran 1 tests.  PASS: 0  FAIL: 1
[836/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o
[837/2504] Linking CXX executable projects/libc/test/src/fenv/libc.test.src.fenv.rounding_mode_test.__build__
[838/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isnanf_test.__unit__.__build__.dir/isnanf_test.cpp.o
[839/2504] Linking CXX executable projects/libc/test/src/fenv/libc.test.src.fenv.feenableexcept_test.__build__
[840/2504] Linking CXX executable projects/libc/test/include/libc.test.include.isinff_test.__unit__.__build__
[841/2504] Running unit test libc.test.src.__support.threads.linux.raw_mutex_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest
[       OK ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest (4 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.Timeout
[       OK ] LlvmLibcSupportThreadsRawMutexTest.Timeout (51 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock
[       OK ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock (10 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[842/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isfinite_test.__unit__.__build__.dir/isfinite_test.cpp.o
[843/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isfinitef_test.__unit__.__build__.dir/isfinitef_test.cpp.o
[844/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isinf_test.__unit__.__build__.dir/isinf_test.cpp.o
[845/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.signbitl_test.__unit__.__build__.dir/signbitl_test.cpp.o
[846/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isnanl_test.__unit__.__build__.dir/isnanl_test.cpp.o
[847/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.signbit_test.__unit__.__build__.dir/signbit_test.cpp.o
[848/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isnan_test.__unit__.__build__.dir/isnan_test.cpp.o
[849/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isfinitel_test.__unit__.__build__.dir/isfinitel_test.cpp.o
[850/2504] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_long_double_test.cpp.o
[851/2504] Building CXX object projects/libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o
[852/2504] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_float_test.cpp.o
[853/2504] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.getenv_and_setenv_test.__build__.dir/getenv_and_setenv_test.cpp.o
[854/2504] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_double_test.cpp.o
[855/2504] Building CXX object projects/libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcHashTest.SanityCheck (1 ms)
[ RUN      ] LlvmLibcHashTest.Avalanche
[       OK ] LlvmLibcHashTest.Avalanche (264 ms)
[ RUN      ] LlvmLibcHashTest.UniformLSB
[       OK ] LlvmLibcHashTest.UniformLSB (332 ms)
[ RUN      ] LlvmLibcHashTest.UniformMSB
[       OK ] LlvmLibcHashTest.UniformMSB (215 us)
Ran 4 tests.  PASS: 4  FAIL: 0
[834/2504] Linking CXX executable projects/libc/test/include/libc.test.include.signbitf_test.__unit__.__build__
[835/2504] Running unit test libc.test.include.signbitf_test.__unit__
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.signbitf_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include/CMakeFiles/libc.test.include.signbitf_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include/libc.test.include.signbitf_test.__unit__.__build__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSignbitTest.SpecialNumbers
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include/SignbitTest.h:26: FAILURE
      Expected: func(-1)
      Which is: -2147483648
To be equal to: 1
      Which is: 1
[  FAILED  ] LlvmLibcSignbitTest.SpecialNumbers
Ran 1 tests.  PASS: 0  FAIL: 1
[836/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o
[837/2504] Linking CXX executable projects/libc/test/src/fenv/libc.test.src.fenv.rounding_mode_test.__build__
[838/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isnanf_test.__unit__.__build__.dir/isnanf_test.cpp.o
[839/2504] Linking CXX executable projects/libc/test/src/fenv/libc.test.src.fenv.feenableexcept_test.__build__
[840/2504] Linking CXX executable projects/libc/test/include/libc.test.include.isinff_test.__unit__.__build__
[841/2504] Running unit test libc.test.src.__support.threads.linux.raw_mutex_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest
[       OK ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest (4 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.Timeout
[       OK ] LlvmLibcSupportThreadsRawMutexTest.Timeout (51 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock
[       OK ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock (10 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[842/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isfinite_test.__unit__.__build__.dir/isfinite_test.cpp.o
[843/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isfinitef_test.__unit__.__build__.dir/isfinitef_test.cpp.o
[844/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isinf_test.__unit__.__build__.dir/isinf_test.cpp.o
[845/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.signbitl_test.__unit__.__build__.dir/signbitl_test.cpp.o
[846/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isnanl_test.__unit__.__build__.dir/isnanl_test.cpp.o
[847/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.signbit_test.__unit__.__build__.dir/signbit_test.cpp.o
[848/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isnan_test.__unit__.__build__.dir/isnan_test.cpp.o
[849/2504] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isfinitel_test.__unit__.__build__.dir/isfinitel_test.cpp.o
[850/2504] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_long_double_test.cpp.o
[851/2504] Building CXX object projects/libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o
[852/2504] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_float_test.cpp.o
[853/2504] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.getenv_and_setenv_test.__build__.dir/getenv_and_setenv_test.cpp.o
[854/2504] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_double_test.cpp.o
[855/2504] Building CXX object projects/libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o

```

https://github.com/llvm/llvm-project/pull/97791


More information about the libc-commits mailing list