[clang] [clang][ASTImporter][NFC] add unittests for unnamed EnumDecl (PR #100545)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 25 19:06:03 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `clang` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[372/377] Generating MSAN_INST_GTEST.gtest-all.cc.x86_64.o
[373/377] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64-with-call.o
[374/377] Generating Msan-x86_64-with-call-Test
[375/377] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64.o
[376/377] Generating Msan-x86_64-Test
[376/377] Running compiler_rt regression tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/rtsan/X86_64LinuxConfig' contained no tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 10075 tests, 88 workers --
Testing:  0.. 10
FAIL: AddressSanitizer-i386-linux :: TestCases/leaks.cpp (1296 of 10075)
******************** TEST 'AddressSanitizer-i386-linux :: TestCases/leaks.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /b/sanitizer-x86_64-linux/build/build_default/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m32  -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp
+ /b/sanitizer-x86_64-linux/build/build_default/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m32 -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp:16:16: warning: unknown attribute 'noopt' ignored [-Wunknown-attributes]
   16 | __attribute__((noopt)) void leak(int n) {
      |                ^~~~~
1 warning generated.
RUN: at line 5: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 0 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 0
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
RUN: at line 6: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
RUN: at line 7: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000
RUN: at line 8: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000000 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000000
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
RUN: at line 9: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 10000000 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 10000000
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp:37:11: error: CHECK: expected string not found in input
// CHECK: LeakSanitizer: detected memory leaks
          ^
<stdin>:1:1: note: scanning from here
t: 0xe39d9800
^

Input file: <stdin>
Check file: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp

-dump-input=help explains the following input dump.

Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
[372/377] Generating MSAN_INST_GTEST.gtest-all.cc.x86_64.o
[373/377] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64-with-call.o
[374/377] Generating Msan-x86_64-with-call-Test
[375/377] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64.o
[376/377] Generating Msan-x86_64-Test
[376/377] Running compiler_rt regression tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/rtsan/X86_64LinuxConfig' contained no tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 10075 tests, 88 workers --
Testing:  0.. 10
FAIL: AddressSanitizer-i386-linux :: TestCases/leaks.cpp (1296 of 10075)
******************** TEST 'AddressSanitizer-i386-linux :: TestCases/leaks.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /b/sanitizer-x86_64-linux/build/build_default/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m32  -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp
+ /b/sanitizer-x86_64-linux/build/build_default/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m32 -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp:16:16: warning: unknown attribute 'noopt' ignored [-Wunknown-attributes]
   16 | __attribute__((noopt)) void leak(int n) {
      |                ^~~~~
1 warning generated.
RUN: at line 5: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 0 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 0
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
RUN: at line 6: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
RUN: at line 7: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000
RUN: at line 8: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000000 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 1000000
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
RUN: at line 9: not  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 10000000 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
+ not /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/asan/I386LinuxConfig/TestCases/Output/leaks.cpp.tmp 10000000
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp:37:11: error: CHECK: expected string not found in input
// CHECK: LeakSanitizer: detected memory leaks
          ^
<stdin>:1:1: note: scanning from here
t: 0xe39d9800
^

Input file: <stdin>
Check file: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/asan/TestCases/leaks.cpp

-dump-input=help explains the following input dump.


```

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


More information about the cfe-commits mailing list