Author: nicholas
Date: Thu Oct 20 23:04:49 2011
New Revision: 142637
URL: http://llvm.org/viewvc/llvm-project?rev=142637&view=rev
Log:
Try to be exceedingly clever and make this test work properly whether it's run
under bash or under cmd.exe.
Modified:
cfe/trunk/test/Driver/debug.c
Modified: cfe/trunk/test/Driver/debug.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/debug.c?rev=142637&r1=142636&r2=142637&view=diff
==============================================================================
--- cfe/trunk/test/Driver/debug.c (original)
+++ cfe/trunk/test/Driver/debug.c Thu Oct 20 23:04:49 2011
@@ -1,4 +1,5 @@
// RUN: cd %S && %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir"
"'%S'"'
+// RUN: (sv PWD=/foo && %clang -### -g %s -c 2>&1 | grep
'"-fdebug-compilation-dir" "/foo"') || \
// RUN: PWD=/foo %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir"
"/foo"'
// This test uses grep instead of FileCheck so that we get %S -> dirname
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits