From f8bff1c31c257abb760f08ef30f70205bc4b41f5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 17 Mar 2016 16:19:51 +0000 Subject: Use a simpler set of mock headers for the vfs+modules crash recovery tests. The System/ mock is large and too complex for this test. It can cause the tests to fail in mysterious ways as it depends on the resource dir being present, which is not really supported for driver tests (using %clang instead of %clang_cc1). Copy the tree and trim out all the %unnecessary fat. llvm-svn: 263718 --- clang/test/Modules/Inputs/crash-recovery/usr/include/module.map | 6 ++++++ clang/test/Modules/Inputs/crash-recovery/usr/include/stdio.h | 3 +++ .../Modules/Inputs/crash-recovery/usr/include/tcl-private/header.h | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 clang/test/Modules/Inputs/crash-recovery/usr/include/module.map create mode 100644 clang/test/Modules/Inputs/crash-recovery/usr/include/stdio.h create mode 100644 clang/test/Modules/Inputs/crash-recovery/usr/include/tcl-private/header.h (limited to 'clang/test/Modules/Inputs/crash-recovery/usr/include') diff --git a/clang/test/Modules/Inputs/crash-recovery/usr/include/module.map b/clang/test/Modules/Inputs/crash-recovery/usr/include/module.map new file mode 100644 index 00000000000..70aae494eff --- /dev/null +++ b/clang/test/Modules/Inputs/crash-recovery/usr/include/module.map @@ -0,0 +1,6 @@ +module cstd [system] { + // Only in system headers directory + module stdio { + header "stdio.h" + } +} diff --git a/clang/test/Modules/Inputs/crash-recovery/usr/include/stdio.h b/clang/test/Modules/Inputs/crash-recovery/usr/include/stdio.h new file mode 100644 index 00000000000..f41e09c35a4 --- /dev/null +++ b/clang/test/Modules/Inputs/crash-recovery/usr/include/stdio.h @@ -0,0 +1,3 @@ +typedef struct { int id; } FILE; +int fprintf(FILE*restrict, const char* restrict format, ...); +extern FILE *__stderrp; diff --git a/clang/test/Modules/Inputs/crash-recovery/usr/include/tcl-private/header.h b/clang/test/Modules/Inputs/crash-recovery/usr/include/tcl-private/header.h new file mode 100644 index 00000000000..0e8fb64a712 --- /dev/null +++ b/clang/test/Modules/Inputs/crash-recovery/usr/include/tcl-private/header.h @@ -0,0 +1,2 @@ +// tcl-private/header.h +#define TCL_PRIVATE 1 -- cgit v1.2.3