[Modules] Test lock file removed on signal

For r240967.

rdar://problem/21512307

llvm-svn: 240968
This commit is contained in:
Ben Langmuir 2015-06-29 17:09:24 +00:00
parent 63aa8c5d28
commit 51e3d7b2e0
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
#pragma clang __debug crash

View File

@ -324,3 +324,6 @@ module recursive1 {
module recursive2 {
header "recursive2.h"
}
module crash {
header "crash.h"
}

View File

@ -0,0 +1,11 @@
// REQUIRES: shell
// RUN: rm -rf %t
// Crash building module.
// RUN: not --crash %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs %s
// The dead symlink is still around, but the underlying lock file is gone.
// RUN: find %t -name "crash-*.pcm.lock" | count 1
// RUN: find %t -name "crash-*.pcm.lock-*" | count 0
@import crash;