Page MenuHomePhabricator

[lit][libcxx] Add a --run-with-debugger/--gdb flag
Changes PlannedPublic

Authored by arichardson on Oct 6 2020, 8:04 AM.

Details

Reviewers
ldionne
griwes
Group Reviewers
Restricted Project
Summary

This flag can be used to run libc++/libunwind/libc++abi tests under GDB to
make it easier to debug test failures. We use this approach in our CHERI
Jenkins setup to ensure that crashing test cases include a backtrace in
the Jenkins JUnit test result viewer.
This uses the --wrapper-command executor flag added in D88899.

Diff Detail

Unit TestsFailed

TimeTest
412,169 ms-fno-exceptions (https://buildkite.com/llvm-project/libcxx-ci/builds/64#c4d9dfbe-df22-4ad5-a938-a4f5d4310573)
--- Generating CMake -- The C compiler identification is Clang 11.0.0 -- The CXX compiler identification is Clang 11.0.0
703,399 msASAN (https://buildkite.com/llvm-project/libcxx-ci/builds/64#132d6df7-45f5-4c28-868c-689d67f5ea58)
--- Generating CMake -- The C compiler identification is Clang 11.0.0 -- The CXX compiler identification is Clang 11.0.0
2,511,157 msApple system (https://buildkite.com/llvm-project/libcxx-ci/builds/64#71f918a0-a59f-4e6c-96a7-a8a6999169c0)
--- Generating CMake loading initial cache file /usr/local/var/buildkite-agent/builds/2019-local-1/llvm-project/libcxx-ci/libcxx/cmake/caches/Apple.cmake -- The C compiler identification is AppleClang 12.0.0.12000032
954,325 msApple system (https://buildkite.com/llvm-project/libcxx-ci/builds/64#fdddde81-c24e-4aec-bad0-d220bcd57829)
--- Generating CMake loading initial cache file /private/tmp/buildkite-agent/builds/libcxx-mbp-local-1/llvm-project/libcxx-ci/libcxx/cmake/caches/Apple.cmake -- The C compiler identification is AppleClang 12.0.0.12000032
922,981 msApple system -fno-exceptions (https://buildkite.com/llvm-project/libcxx-ci/builds/64#0ac52880-011e-428b-bf47-12bbbcd68e78)
--- Generating CMake loading initial cache file /private/tmp/buildkite-agent/builds/libcxx-mbp-local-1/llvm-project/libcxx-ci/libcxx/cmake/caches/Apple.cmake -- The C compiler identification is AppleClang 12.0.0.12000032
View Full Test Results (17 Failed · 3 Passed)