[llvm] 291d248 - [ms] Fix repeated executions of the no-inputs llvm-lib test

Eric Astor via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 15:10:57 PDT 2020


Author: Eric Astor
Date: 2020-04-30T18:10:46-04:00
New Revision: 291d24838fcf1ed1c87ad75953bcf5f2ad2278a1

URL: https://github.com/llvm/llvm-project/commit/291d24838fcf1ed1c87ad75953bcf5f2ad2278a1
DIFF: https://github.com/llvm/llvm-project/commit/291d24838fcf1ed1c87ad75953bcf5f2ad2278a1.diff

LOG: [ms] Fix repeated executions of the no-inputs llvm-lib test

`rm` the file, THEN run the command that shouldn't create it, THEN confirm that it doesn't exist

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-lib/no-inputs.test b/llvm/test/tools/llvm-lib/no-inputs.test
index c1b2eeadadf2..22e096f78ce0 100644
--- a/llvm/test/tools/llvm-lib/no-inputs.test
+++ b/llvm/test/tools/llvm-lib/no-inputs.test
@@ -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>


        


More information about the llvm-commits mailing list