From: Douglas Gregor Date: Thu, 8 Sep 2011 22:32:33 +0000 (+0000) Subject: Add some delay between PCH creation and modifying one of the headers it depends on... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7862476445c1b217ef85e1fbb5855a18bae7bc1;p=clang Add some delay between PCH creation and modifying one of the headers it depends on, which will---hopefully make this test predictably pass on Windows git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139327 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/PCH/modified-header-error.c b/test/PCH/modified-header-error.c index 6335fb1b45..de85fe7c48 100644 --- a/test/PCH/modified-header-error.c +++ b/test/PCH/modified-header-error.c @@ -3,6 +3,7 @@ // RUN: echo > %t.dir/header2.h // RUN: cp %s %t.dir/t.c // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch +// RUN: sleep 2 // RUN: echo >> %t.dir/header2.h // RUN: %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s