From 291d24838fcf1ed1c87ad75953bcf5f2ad2278a1 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Thu, 30 Apr 2020 18:08:07 -0400 Subject: [PATCH] [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 --- llvm/test/tools/llvm-lib/no-inputs.test | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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: !