[cfe-commits] r127130 - /cfe/trunk/test/PCH/headersearch.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sun Mar 6 12:44:33 PST 2011
Author: chapuni
Date: Sun Mar 6 14:44:33 2011
New Revision: 127130
URL: http://llvm.org/viewvc/llvm-project?rev=127130&view=rev
Log:
test/PCH/headersearch.cpp: Tweak for Windows hosts especially cygming.
This test requires shell feature, to change working directory.
On Windows, current directory cannot be moved nor removed.
Modified:
cfe/trunk/test/PCH/headersearch.cpp
Modified: cfe/trunk/test/PCH/headersearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/headersearch.cpp?rev=127130&r1=127129&r2=127130&view=diff
==============================================================================
--- cfe/trunk/test/PCH/headersearch.cpp (original)
+++ cfe/trunk/test/PCH/headersearch.cpp Sun Mar 6 14:44:33 2011
@@ -1,8 +1,9 @@
// Test reading of PCH with changed location of original input files,
// i.e. invoking header search.
-// XFAIL: cygwin,mingw,win32
+// REQUIRES: shell
// Generate the original files:
+// RUN: rm -rf %t_orig %t_moved
// RUN: mkdir -p %t_orig/sub %t_orig/sub2
// RUN: echo 'struct orig_sub{char c; int i; };' > %t_orig/sub/orig_sub.h
// RUN: echo 'void orig_sub2_1();' > %t_orig/sub2/orig_sub2_1.h
@@ -16,8 +17,7 @@
// Generate the PCH:
// RUN: cd %t_orig && %clang_cc1 -x c++ -emit-pch -o all.h.pch -Isub2 all.h
-// RUN: rm -rf %t_moved
-// RUN: mv %t_orig %t_moved
+// RUN: cp -pR %t_orig %t_moved
// Check diagnostic with location in original source:
// RUN: %clang_cc1 -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -Wpadded -emit-obj -o %t.o %s 2> %t.stderr
More information about the cfe-commits
mailing list