]> granicus.if.org Git - clang/commitdiff
test/Driver/hello.c: Tweak for cygming.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 16 Mar 2011 13:51:46 +0000 (13:51 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 16 Mar 2011 13:51:46 +0000 (13:51 +0000)
  - Driver's name may be "clang(-\d.\d).exe".
  - Emitted executable file is named as "%t.exe". It must be harmless on other OS.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127729 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/hello.c

index 82bc6997bc722935a024173db43633bce93dc926..c2260e53eb3828d965395d42f1feec3a3a351d02 100644 (file)
@@ -1,9 +1,9 @@
-// RUN: %clang -ccc-echo -o %t %s 2> %t.log
+// RUN: %clang -ccc-echo -o %t.exe %s 2> %t.log
 
 // Make sure we used clang.
-// RUN: grep 'clang\(-[0-9.]\+\)\?" -cc1 .*hello.c' %t.log
+// RUN: grep 'clang\(-[0-9.]\+\)\?\(\.[Ee][Xx][Ee]\)\?" -cc1 .*hello.c' %t.log
 
-// RUN: %t > %t.out
+// RUN: %t.exe > %t.out
 // RUN: grep "I'm a little driver, short and stout." %t.out
 
 // FIXME: We don't have a usable assembler on Windows, so we can't build real