[ms] Fix repeated executions of the no-inputs llvm-lib test
authorEric Astor <epastor@google.com>
Thu, 30 Apr 2020 22:08:07 +0000 (18:08 -0400)
committerEric Astor <epastor@google.com>
Thu, 30 Apr 2020 22:10:46 +0000 (18:10 -0400)
`rm` the file, THEN run the command that shouldn't create it, THEN confirm that it doesn't exist

llvm/test/tools/llvm-lib/no-inputs.test

index c1b2eea..22e096f 100644 (file)
@@ -1,6 +1,7 @@
-RUN: llvm-lib -out:%t.a
-RUN: test ! -e %t.a
+RUN: rm -f %t.lib
+RUN: llvm-lib -out:%t.lib
+RUN: test ! -e %t.lib
 
-RUN: llvm-lib /llvmlibempty -out:%t.a
-RUN: FileCheck %s < %t.a
+RUN: llvm-lib /llvmlibempty -out:%t.lib
+RUN: FileCheck %s < %t.lib
 CHECK: !<arch>