[llvm] Add unit tests for size returning new funcs in the MemProf use pass. (PR #105473)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 09:47:24 PDT 2024


llvm-ci wrote:

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

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcBzeroTest.SizeSweep
[       OK ] LlvmLibcBzeroTest.SizeSweep (892 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[880/1003] Running unit test libc.test.src.string.bzero_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcBzeroTest.SizeSweep
[       OK ] LlvmLibcBzeroTest.SizeSweep (953 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[881/1003] Running unit test libc.test.src.stdio.fscanf_test.__unit__
FAILED: projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fscanf_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fscanf_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdio && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdio/libc.test.src.stdio.fscanf_test.__unit__.__build__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFScanfTest.WriteToFile
Segmentation fault
[882/1003] Running unit test libc.test.src.stdlib.strfroml_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcStrfromlTest.FloatDecimalFormat
[       OK ] LlvmLibcStrfromlTest.FloatDecimalFormat (150 us)
[ RUN      ] LlvmLibcStrfromlTest.FloatHexExpFormat
[       OK ] LlvmLibcStrfromlTest.FloatHexExpFormat (12 us)
[ RUN      ] LlvmLibcStrfromlTest.FloatDecimalAutoFormat
[       OK ] LlvmLibcStrfromlTest.FloatDecimalAutoFormat (32 ms)
[ RUN      ] LlvmLibcStrfromlTest.FloatDecimalExpFormat
[       OK ] LlvmLibcStrfromlTest.FloatDecimalExpFormat (16 ms)
[ RUN      ] LlvmLibcStrfromlTest.ImproperFormatString
[       OK ] LlvmLibcStrfromlTest.ImproperFormatString (12 us)
[ RUN      ] LlvmLibcStrfromlTest.InsufficientBufferSize
[       OK ] LlvmLibcStrfromlTest.InsufficientBufferSize (269 us)
[ RUN      ] LlvmLibcStrfromlTest.InfAndNanValues
[       OK ] LlvmLibcStrfromlTest.InfAndNanValues (6 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[883/1003] Running unit test libc.test.src.string.memcmp_x86_64_opt_sse2_test.__unit__
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcMemcmpTest.CmpZeroByte
[       OK ] LlvmLibcMemcmpTest.CmpZeroByte (3 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsRhsAreTheSame
[       OK ] LlvmLibcMemcmpTest.LhsRhsAreTheSame (1 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically (1 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsAfterRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsAfterRhsLexically (1 us)
[ RUN      ] LlvmLibcMemcmpTest.Issue77080
[       OK ] LlvmLibcMemcmpTest.Issue77080 (10 us)
[ RUN      ] LlvmLibcMemcmpTest.SizeSweep
[       OK ] LlvmLibcMemcmpTest.SizeSweep (13 ms)
Ran 6 tests.  PASS: 6  FAIL: 0
[884/1003] Running unit test libc.test.src.string.memcmp_x86_64_opt_sse4_test.__unit__
[==========] Running 6 tests from 1 test suite.
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcBzeroTest.SizeSweep
[       OK ] LlvmLibcBzeroTest.SizeSweep (892 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[880/1003] Running unit test libc.test.src.string.bzero_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcBzeroTest.SizeSweep
[       OK ] LlvmLibcBzeroTest.SizeSweep (953 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[881/1003] Running unit test libc.test.src.stdio.fscanf_test.__unit__
FAILED: projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fscanf_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fscanf_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdio && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/build/projects/libc/test/src/stdio/libc.test.src.stdio.fscanf_test.__unit__.__build__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFScanfTest.WriteToFile
Segmentation fault
[882/1003] Running unit test libc.test.src.stdlib.strfroml_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcStrfromlTest.FloatDecimalFormat
[       OK ] LlvmLibcStrfromlTest.FloatDecimalFormat (150 us)
[ RUN      ] LlvmLibcStrfromlTest.FloatHexExpFormat
[       OK ] LlvmLibcStrfromlTest.FloatHexExpFormat (12 us)
[ RUN      ] LlvmLibcStrfromlTest.FloatDecimalAutoFormat
[       OK ] LlvmLibcStrfromlTest.FloatDecimalAutoFormat (32 ms)
[ RUN      ] LlvmLibcStrfromlTest.FloatDecimalExpFormat
[       OK ] LlvmLibcStrfromlTest.FloatDecimalExpFormat (16 ms)
[ RUN      ] LlvmLibcStrfromlTest.ImproperFormatString
[       OK ] LlvmLibcStrfromlTest.ImproperFormatString (12 us)
[ RUN      ] LlvmLibcStrfromlTest.InsufficientBufferSize
[       OK ] LlvmLibcStrfromlTest.InsufficientBufferSize (269 us)
[ RUN      ] LlvmLibcStrfromlTest.InfAndNanValues
[       OK ] LlvmLibcStrfromlTest.InfAndNanValues (6 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[883/1003] Running unit test libc.test.src.string.memcmp_x86_64_opt_sse2_test.__unit__
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcMemcmpTest.CmpZeroByte
[       OK ] LlvmLibcMemcmpTest.CmpZeroByte (3 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsRhsAreTheSame
[       OK ] LlvmLibcMemcmpTest.LhsRhsAreTheSame (1 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically (1 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsAfterRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsAfterRhsLexically (1 us)
[ RUN      ] LlvmLibcMemcmpTest.Issue77080
[       OK ] LlvmLibcMemcmpTest.Issue77080 (10 us)
[ RUN      ] LlvmLibcMemcmpTest.SizeSweep
[       OK ] LlvmLibcMemcmpTest.SizeSweep (13 ms)
Ran 6 tests.  PASS: 6  FAIL: 0
[884/1003] Running unit test libc.test.src.string.memcmp_x86_64_opt_sse4_test.__unit__
[==========] Running 6 tests from 1 test suite.

```

</details>

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


More information about the llvm-commits mailing list