[lld] f1a18fb - [LLD] [MinGW] Silence the printouts in one test. NFC.

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 23 00:44:15 PDT 2021


Author: Martin Storsjö
Date: 2021-06-23T10:44:01+03:00
New Revision: f1a18fb6993bcc7d646753c70faa0444abb8cc5c

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

LOG: [LLD] [MinGW] Silence the printouts in one test. NFC.

This particular linker invocation is only run to check that we accept
options, but we don't inspect the generated command line. As all other
commands in the file have their output piped to FileCheck, the lit test
doesn't print any other output; therefore silence this one for consistency
as well.

Added: 
    

Modified: 
    lld/test/MinGW/driver.test

Removed: 
    


################################################################################
diff  --git a/lld/test/MinGW/driver.test b/lld/test/MinGW/driver.test
index 24a4207c0c67..cb164df6ecce 100644
--- a/lld/test/MinGW/driver.test
+++ b/lld/test/MinGW/driver.test
@@ -181,7 +181,7 @@ RUN: ld.lld -### -m i386pep foo.o --icf=all 2>&1 | FileCheck -check-prefix ICF %
 RUN: ld.lld -### -m i386pep foo.o -icf=all 2>&1 | FileCheck -check-prefix ICF %s
 ICF: -opt:icf
 
-RUN: ld.lld -### -m i386pep --start-group foo.o --end-group
+RUN: ld.lld -### -m i386pep --start-group foo.o --end-group 2> /dev/null
 
 RUN: ld.lld -### foo.o -m i386pe -shared --kill-at 2>&1 | FileCheck -check-prefix=KILL-AT %s
 RUN: ld.lld -### foo.o -m i386pe -shared -kill-at 2>&1 | FileCheck -check-prefix=KILL-AT %s


        


More information about the llvm-commits mailing list