[lld] r328862 - Simplify test.

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 30 06:44:15 PDT 2018


Author: nico
Date: Fri Mar 30 06:44:15 2018
New Revision: 328862

URL: http://llvm.org/viewvc/llvm-project?rev=328862&view=rev
Log:
Simplify test.

As of rL215127, FileCheck has an -allow-empty flag,
so this could be used instead of writing a dummy line.
But it looks like the log is never empty now, so not
even that is needed.

Modified:
    lld/trunk/test/COFF/opt.test

Modified: lld/trunk/test/COFF/opt.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/opt.test?rev=328862&r1=328861&r2=328862&view=diff
==============================================================================
--- lld/trunk/test/COFF/opt.test (original)
+++ lld/trunk/test/COFF/opt.test Fri Mar 30 06:44:15 2018
@@ -2,13 +2,10 @@
 
 # RUN: lld-link /out:%t.exe /entry:main %t.obj \
 # RUN:   /verbose >& %t.log
-### FileCheck doesn't like empty input, so write something.
-# RUN: echo dummy >> %t.log
 # RUN: FileCheck -check-prefix=CHECK1 %s < %t.log
 
 # RUN: lld-link /out:%t.exe /entry:main %t.obj \
 # RUN:   /verbose /opt:noref >& %t.log
-# RUN: echo dummy >> %t.log
 # RUN: FileCheck -check-prefix=CHECK2 %s < %t.log
 
 # CHECK1:     Discarded unused




More information about the llvm-commits mailing list