summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/crash-recovery-code-complete.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not run tests for crash recovery if libstdc++ safe mode is enabledSerge Pavlov2017-04-151-0/+1
| | | | | | | | | | | | | | | | | | 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 llvm-svn: 300392
* Introduce the feature "can-remove-opened-file" to suppress tests. [PR18856]NAKAMURA Takumi2014-02-161-1/+1
| | | | llvm-svn: 201482
* [c-index-test] For the '-remap-file' option use a comma for separator which ↵Argyrios Kyrtzidis2013-12-051-1/+1
| | | | | | | | is more Windows friendly than the colon. llvm-svn: 196529
* [c-index-test] For the '-remap-file=' option use ':' instead of ';' for ↵Argyrios Kyrtzidis2013-12-051-1/+1
| | | | | | | | separator. lldb does not like semicolon as part of an option. llvm-svn: 196485
* clang/test/Index/crash-recovery-code-complete.c: Mark it as XFAIL:win32 for now.NAKAMURA Takumi2013-03-251-0/+3
| | | | | | I know MemoryBuffer might affect this. Still investigating. llvm-svn: 177946
* clang/test/Index/crash-recovery-*.c: Drop 'REQUIRES:shell". "test !" is ↵NAKAMURA Takumi2013-01-251-1/+0
| | | | | | available on Lit win32 since r173421. llvm-svn: 173422
* Mark these tests as requiring use of the shell.Ted Kremenek2011-10-271-0/+1
| | | | llvm-svn: 143150
* Move ASTUnit's handling of temporary files and the preamble file into a ↵Ted Kremenek2011-10-271-1/+1
| | | | | | lazily-created static DenseMap. This DenseMap is cleared (and the files erased) via an atexit routine in the case an ASTUnit is not destroyed. Fixes <rdar://problem/10293367>. llvm-svn: 143115
* The two libclang crash-recovery tests that involve precompiledDouglas Gregor2010-09-111-1/+2
| | | | | | | | | | preambles end up leaving the precompiled preambles around. This is by design, since we do minimal cleanup during crash recovery. However, it's unfortunate for testing, so introduce a hook that allows these two tests to put the precompiled preamble somewhere where we can delete them after testing. llvm-svn: 113698
* tests: Use REQUIRES: instead of XFAIL: for crash recovery tests; running them onDaniel Dunbar2010-08-241-1/+1
| | | | | | | Windows breaks things (because it pops up dialogs) since we don't have crash recovery support there (yet). llvm-svn: 111970
* When performing code-completion in the presence of a preamble, makeDouglas Gregor2010-08-201-4/+3
| | | | | | | | | sure to (1) actually use the remapped files we were given rather than old data, and (2) keep the remapped files alive until the code-completion results are destroyed. Big thanks to Daniel for the test case. llvm-svn: 111597
* libclang: Execute clang_codeCompleteAt() inside a crash recovery context.Daniel Dunbar2010-08-191-0/+11
- Test case is disabled for now, because something isn't write with file remapping. llvm-svn: 111581
OpenPOWER on IntegriCloud