[LLD] [MinGW] Silence the printouts in one test. NFC.
authorMartin Storsjö <martin@martin.st>
Fri, 18 Jun 2021 12:20:13 +0000 (15:20 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 23 Jun 2021 07:44:01 +0000 (10:44 +0300)
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.

lld/test/MinGW/driver.test

index 24a4207..cb164df 100644 (file)
@@ -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