hanchenye-llvm-project/clang/test
Sean Silva 05c8ef085b Make test more robust.
Really all these tests are checking is that we find a file path. The
behavior when we don't find one will have `"ps4-ld"` in it. We just need
a path separator to know that a path has been found.

The root cause of the flakiness of these tests is the same on Windows
and non-Windows: setting the PATH environment variable is not sufficient
to guarantee that a particular path is looked up first.
Driver::GetProgramPath checks some paths before deferring to PATH
(in particular, the directory containing the clang binary itself).

I initally ran into this on Windows when putting a PS4 linker in
build-dir/bin/ps4-ld for testing.
After digging for a while thinking that it was some windows path search
oddity (the Windows SearchPathW documentation indicates that its
behavior varies depending on a registry setting...).
I eventually tried reproducing the issue on Mac and to my surprise found
the same issue.
Ultimately I traced it down to the extra lookups in
Driver::GetProgramPath.

llvm-svn: 262285
2016-03-01 01:20:15 +00:00
..
ARCMT Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
ASTMerge [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
Analysis [analyzer] Update CheckObjCDealloc diagnostic for missing -dealloc. 2016-03-01 00:39:04 +00:00
CXX [modules] Prefer more complete array types. 2016-02-28 19:08:24 +00:00
CodeCompletion [Parse] Code complete expressions in bracket declarators. 2016-02-18 15:30:24 +00:00
CodeGen [PGO] clang cc1 option change to enable IR level instrumentation 2016-02-29 18:54:59 +00:00
CodeGenCUDA [CUDA] Mark all CUDA device-side function defs, decls, and calls as convergent. 2016-02-24 21:55:11 +00:00
CodeGenCXX [clang-cl] /EHc should not effect functions with explicit exception specifications 2016-02-29 01:40:36 +00:00
CodeGenObjC Objective-C: Add a size field to non-fragile category metadata. 2016-02-24 17:49:50 +00:00
CodeGenObjCXX [CodeGen] Fix an assert in CodeGenFunction::EmitFunctionEpilog 2016-02-17 21:09:50 +00:00
CodeGenOpenCL AMDGPU: Add builtins for recently added intrinsics 2016-02-27 09:54:43 +00:00
Coverage Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
CoverageMapping Restrengthen tests relaxed in r259955 2016-02-17 00:58:13 +00:00
Driver Make test more robust. 2016-03-01 01:20:15 +00:00
FixIt [Lit Test] Updated 26 Lit tests to be C++11 compatible. 2015-11-11 19:34:47 +00:00
Format Fix clang-format test. I believe that the new behavior is better. 2015-11-23 08:50:52 +00:00
Frontend Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
Headers test/Headers/float.c: fix theoretical edge values 2016-02-12 19:24:36 +00:00
Index [index] Print and test module import references. 2016-02-29 07:56:07 +00:00
Integration
Layout [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by Denis Zobnin. 2015-11-20 07:02:57 +00:00
Lexer [OpenCL] Added half type literal with suffix h. 2016-02-17 11:34:37 +00:00
Misc Don't crash w/ a diagnostic range containing a null byte 2016-02-17 22:37:45 +00:00
Modules [modules] Prefer more complete array types. 2016-02-28 19:08:24 +00:00
OpenMP [OPENMP 4.5] Initial support for data members in 'reduction' clauses. 2016-02-29 05:54:20 +00:00
PCH Exclude PCH/missing-file.cpp on Windows, it does not pass reliably 2016-02-16 19:16:28 +00:00
Parser [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr 2016-02-26 03:13:03 +00:00
Preprocessor [X86] Disabling avx512f should also disable avx512vbmi and avx512ifma. Enabling avx512vbmi or avx512ifma should enable avx512f. Add command line switches and header defines for avx512ifma and avx512vbmi. 2016-02-29 06:51:38 +00:00
Profile Test simplification 2016-02-17 00:59:01 +00:00
Rewriter Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
Sema Minor tweak to match the overall style. 2016-02-26 18:01:12 +00:00
SemaCUDA [CUDA] do not allow attribute-based overloading for __global__ functions. 2016-02-24 21:54:45 +00:00
SemaCXX Fix bug in using shadow decl checking: a using shadow decl should not conflict 2016-02-27 02:36:43 +00:00
SemaObjC [Sema] More changes to fix Objective-C fallout from r249995. 2016-02-13 01:41:41 +00:00
SemaObjCXX [Sema] Remove assert in TreeTransform<Derived>::TransformObjCObjectType. 2016-02-25 07:08:33 +00:00
SemaOpenCL AMDGPU: Add builtins for recently added intrinsics 2016-02-27 09:54:43 +00:00
SemaTemplate Fix assertion failure on MaybeODRUseExprs. 2016-02-24 23:05:43 +00:00
TableGen
Tooling int function without a return statement is invalid C++. 2015-11-27 18:10:49 +00:00
Unit
VFS [VFS] Fix status() of opened redirected file 2015-12-10 23:41:39 +00:00
.clang-format
CMakeLists.txt [ThinLTO] Option to invoke ThinLTO backend passes and importing 2015-12-07 19:21:34 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
lit.site.cfg.in [modules] Compress files embedded into a .pcm file, to reduce the disk usage of -fembed-all-files mode. 2016-02-06 02:06:43 +00:00
make_test_dirs.pl