[CrashReproducer] Provide a clean dir path for -fmodules-cache-path
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 9 Dec 2016 03:11:48 +0000 (03:11 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 9 Dec 2016 03:11:48 +0000 (03:11 +0000)
commit1c10872150ccb7731a08eeef5e4c2d32a53a46af
treead7f0ace867bdacd4f187e60daa90cacf3fdc43f
parent824d6952310f6fa127cd14efb52017adc8d058f3
[CrashReproducer] Provide a clean dir path for -fmodules-cache-path

The most common workflow with module reproducers involves deleting the
module cache before running the script. This happens because leftovers
from the crash are present in the cache and could trigger unrelated and
confusing errors, misleading from the initial reproduction intent.
Change this to point to a clean path but leave the leftovers untouched.

rdar://problem/28655070

llvm-svn: 289176
clang/lib/Driver/Job.cpp
clang/test/Modules/crash-vfs-path-emptydir-entries.m
clang/test/Modules/crash-vfs-path-symlink-component.m
clang/test/Modules/crash-vfs-path-symlink-topheader.m
clang/test/Modules/crash-vfs-path-traversal.m
clang/test/Modules/crash-vfs-relative-incdir.m
clang/test/Modules/crash-vfs-relative-overlay.m
clang/test/Modules/crash-vfs-run-reproducer.m