summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/crash-vfs-path-traversal.m
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-04-13 19:28:21 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-04-13 19:28:21 +0000
commitfc8644cd62fe1146adbfb729f55b85481ef1f2ee (patch)
tree557d3f36fcc4618826c93492b6b32125bf02bba0 /clang/test/Modules/crash-vfs-path-traversal.m
parentf6f1def558b8425245d820c37b2c3dbfed3c3b63 (diff)
downloadbcm5719-llvm-fc8644cd62fe1146adbfb729f55b85481ef1f2ee.tar.gz
bcm5719-llvm-fc8644cd62fe1146adbfb729f55b85481ef1f2ee.zip
[CrashReproducer] Setup 'use-external-names' in YAML files.
Hide the real paths when rebuilding from VFS by setting up the crash reproducer to use 'use-external-names' = false. This way we avoid module redifinition errors and consistently use the same paths against all modules. With this change on Darwin we are able to simulate a crash for a simple application using "Foundation/Foundation.h" (which relies on a bunch of different frameworks and headers) and successfully rebuild all the modules by relying solely at the VFS overlay. llvm-svn: 266234
Diffstat (limited to 'clang/test/Modules/crash-vfs-path-traversal.m')
-rw-r--r--clang/test/Modules/crash-vfs-path-traversal.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Modules/crash-vfs-path-traversal.m b/clang/test/Modules/crash-vfs-path-traversal.m
index 822a0dc2068..3377de47d0b 100644
--- a/clang/test/Modules/crash-vfs-path-traversal.m
+++ b/clang/test/Modules/crash-vfs-path-traversal.m
@@ -37,6 +37,9 @@
// CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml"
// CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/modules"
+// CHECKYAML: 'case-sensitive':
+// CHECKYAML-NEXT: 'use-external-names': 'false',
+// CHECKYAML-NEXT: 'overlay-relative': 'true',
// CHECKYAML: 'type': 'directory'
// CHECKYAML: 'name': "/[[PATH:.*]]/Inputs/crash-recovery/usr/include",
// CHECKYAML-NEXT: 'contents': [
@@ -59,4 +62,4 @@
// RUN: -fmodules-cache-path=%t/m/ 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECKOVERLAY
-// CHECKOVERLAY: @import cstd.stdio; /* clang -E: implicit import for "{{[^ ]*}}.cache/vfs/{{[^ ]*}}/usr/include/stdio.h"
+// CHECKOVERLAY: @import cstd.stdio; /* clang -E: implicit import for "/{{[^ ].*}}/usr/././//////include/../include/./././../include/stdio.h" */
OpenPOWER on IntegriCloud