Fix darwin-ld.c if dsymutil.exe exists on PATH
authorReid Kleckner <rnk@google.com>
Tue, 16 Jul 2019 23:38:05 +0000 (23:38 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 16 Jul 2019 23:38:05 +0000 (23:38 +0000)
llvm-svn: 366282

clang/test/Driver/darwin-ld.c

index f01eeb4..eb357a9 100644 (file)
@@ -5,9 +5,9 @@
 
 // Make sure we run dsymutil on source input files.
 // RUN: %clang -target i386-apple-darwin9 -### -g %s -o BAR 2> %t.log
-// RUN: grep '".*dsymutil" "-o" "BAR.dSYM" "BAR"' %t.log
+// RUN: grep '".*dsymutil\(.exe\)\?" "-o" "BAR.dSYM" "BAR"' %t.log
 // RUN: %clang -target i386-apple-darwin9 -### -g -filelist FOO %s -o BAR 2> %t.log
-// RUN: grep '".*dsymutil" "-o" "BAR.dSYM" "BAR"' %t.log
+// RUN: grep '".*dsymutil\(.exe\)\?" "-o" "BAR.dSYM" "BAR"' %t.log
 
 // Check linker changes that came with new linkedit format.
 // RUN: touch %t.o