Simplify test so that it is more portable.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 13 Apr 2013 22:26:02 +0000 (22:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 13 Apr 2013 22:26:02 +0000 (22:26 +0000)
I have checked that the test still fails when the "|| !P.isRegularFile()" from
the original patch is removed.

llvm-svn: 179464

clang/test/Driver/output-file-is-dir.c

index 6053731..042ae3d 100644 (file)
@@ -1,8 +1,6 @@
-// XFAIL: hexagon
 // RUN: rm -rf %t.dir
-// RUN: mkdir -p %t.dir/a.out
-// RUN: cd %t.dir && not %clang %s
-// RUN: test -d %t.dir/a.out
-// REQUIRES: shell
+// RUN: mkdir -p %t.dir
+// RUN: not %clang %s -c -emit-llvm -o %t.dir
+// RUN: test -d %t.dir
 
 int main() { return 0; }