r177658 - This ugly regex is required because on Windows, the paths come out as \\ delimited instead of / delimited. Fixes a test breakage since r176894.

Aaron Ballman aaron at aaronballman.com
Thu Mar 21 13:12:19 PDT 2013


Author: aaronballman
Date: Thu Mar 21 15:12:19 2013
New Revision: 177658

URL: http://llvm.org/viewvc/llvm-project?rev=177658&view=rev
Log:
This ugly regex is required because on Windows, the paths come out as \\ delimited instead of / delimited.  Fixes a test breakage since r176894.

Modified:
    cfe/trunk/test/Driver/resource-dir.cpp

Modified: cfe/trunk/test/Driver/resource-dir.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/resource-dir.cpp?rev=177658&r1=177657&r2=177658&view=diff
==============================================================================
--- cfe/trunk/test/Driver/resource-dir.cpp (original)
+++ cfe/trunk/test/Driver/resource-dir.cpp Thu Mar 21 15:12:19 2013
@@ -5,6 +5,6 @@
 
 // RUN: %clang %s -fsyntax-only -ccc-install-dir /my/install/dir -### 2> %t.log
 // RUN: FileCheck %s --check-prefix=CHECK-INSTALL-DIR < %t.log
-// CHECK-INSTALL-DIR: "-resource-dir" "/my/install/dir/../lib/clang
+// CHECK-INSTALL-DIR: "-resource-dir" "/my/install/dir{{[\\/]+}}..{{[\\/]+}}lib{{[\\/]+}}clang{{[\\/]+.+}}"
 
 void foo(void) {}





More information about the cfe-commits mailing list