[PATCH] D19207: [gold-plugin] Improve coverage with tests

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 15:23:30 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL281109: [gold] Test that we handle invalid directory correctly. (authored by davide).

Changed prior to commit:
  https://reviews.llvm.org/D19207?vs=54021&id=70919#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D19207

Files:
  llvm/trunk/test/tools/gold/invalid-dir.ll
  llvm/trunk/test/tools/gold/lit.local.cfg

Index: llvm/trunk/test/tools/gold/invalid-dir.ll
===================================================================
--- llvm/trunk/test/tools/gold/invalid-dir.ll
+++ llvm/trunk/test/tools/gold/invalid-dir.ll
@@ -0,0 +1,7 @@
+; RUN: rm -rf %t.output
+; RUN: mkdir %t.output
+; RUN: llvm-as %s -o %t.o
+; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so  -shared \
+; RUN:    %t.o -o %t.output 2>&1 | FileCheck %s -check-prefix=OUTDIR
+
+; OUTDIR: fatal error:
Index: llvm/trunk/test/tools/gold/lit.local.cfg
===================================================================
--- llvm/trunk/test/tools/gold/lit.local.cfg
+++ llvm/trunk/test/tools/gold/lit.local.cfg
@@ -0,0 +1,2 @@
+if (not 'ld_plugin' in  config.available_features):
+   config.unsupported = True


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19207.70919.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160909/7e0469cc/attachment.bin>


More information about the llvm-commits mailing list