Go to file
Raphael Isemann 3e1c793e9d Add more pre-run asserts for the DirCompletionAbsolute test
Summary:
The DirCompletionAbsolute is still randomly failing on the nodes even after D50722, so this patch adds more asserts
that verify certain properties on which the actual completion implementation relies on.

The first assert checks that the directory we complete on actually exists. If the directory doesn't exist on the
next CI failure, this assert should catch it and we know that the 0 matches come from a missing base directory.

The second assert is just checking that we are below the PATH_MAX limit that the completion checks against.
This check could randomly fail if the temporary directories we generate are sometimes longer than PATH_MAX,
and the assert can tell us that this is the reason we failed (instead of the mysterious '0 matches').

(As a sidenote: We shouldn't be checking against PATH_MAX anyway in the code (as this is just wrong). Also
the disk completion API really needs a better error mechanism than returning 0 on both error or no-results.)

Reviewers: aprantl, friss

Reviewed By: aprantl

Subscribers: abidh

Differential Revision: https://reviews.llvm.org/D51111

llvm-svn: 340589
2018-08-23 23:21:52 +00:00
clang Fix typo 2018-08-23 22:41:52 +00:00
clang-tools-extra [clangd] Check for include overlapping looks for only the line now. 2018-08-23 15:55:27 +00:00
compiler-rt [sanitizer] Don't call task_for_pid(mach_task_self). NFC. 2018-08-23 22:55:58 +00:00
debuginfo-tests Revert "(Retry) Add a basic integration test for C++ smart pointers" 2018-08-20 19:53:33 +00:00
libclc amdgcn: Use __constant AS for amdgcn builtins. 2018-08-03 15:14:08 +00:00
libcxx Comment out #define __cpp_lib_node_extract, we only support half of that functionality 2018-08-23 17:08:02 +00:00
libcxxabi Port LLVM r340203 (and r340205) to libcxxabi. 2018-08-20 20:14:49 +00:00
libunwind NFC: Test commit access 2018-08-16 16:55:07 +00:00
lld Revert "[PPC64] Fix DQ-form instruction handling and emit error for misalign..." 2018-08-23 19:10:40 +00:00
lldb Add more pre-run asserts for the DirCompletionAbsolute test 2018-08-23 23:21:52 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm Make LLVM_ENABLE_CRASH_DUMPS set a variable default 2018-08-23 22:58:56 +00:00
openmp [OpenMP][libomptarget] Bringing up to spec with respect to OMP_TARGET_OFFLOAD env var 2018-08-23 16:22:42 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [AST] Adapt Polly to AnalysisSetTracker changes. NFC. 2018-08-17 19:31:41 +00:00
README.md

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.