Do not run tests for crash recovery if libstdc++ safe mode is enabled
If expensive checks are enabled, safe mode of libstdc++ is enabled too. In this mode the library uses more complex data that allow additional checks, for instance, a container may keep list of iterators that points to it. If a code crashes it can leave these complex library objects in inconsistent state. It occurs in a few tests that check error recovery if compiler crashes. These test hang in expensive check mode, as the library tries to synchronize access to the iterators pointing to some container, but corresponding mutex remains locked after the crash. This fix marks these tests as unsupported if clang is built with libstdc++ safe mode enabled. Differential Revision: https://reviews.llvm.org/D31126 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300392 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- test/Index/crash-recovery-code-complete.c 1 addition, 0 deletionstest/Index/crash-recovery-code-complete.c
- test/Index/crash-recovery-modules.m 2 additions, 1 deletiontest/Index/crash-recovery-modules.m
- test/Index/crash-recovery-reparse.c 1 addition, 0 deletionstest/Index/crash-recovery-reparse.c
- test/Index/crash-recovery.c 1 addition, 0 deletionstest/Index/crash-recovery.c
- test/lit.cfg 8 additions, 1 deletiontest/lit.cfg
Please register or sign in to comment