[llvm] r281109 - [gold] Test that we handle invalid directory correctly.

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


Author: davide
Date: Fri Sep  9 17:14:57 2016
New Revision: 281109

URL: http://llvm.org/viewvc/llvm-project?rev=281109&view=rev
Log:
[gold] Test that we handle invalid directory correctly.

I had this test sitting around for a while but always forgot to
commit. Rafael reviewed it a while ago.

Differential Revision:  https://reviews.llvm.org/D19207

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

Added: llvm/trunk/test/tools/gold/invalid-dir.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/invalid-dir.ll?rev=281109&view=auto
==============================================================================
--- llvm/trunk/test/tools/gold/invalid-dir.ll (added)
+++ llvm/trunk/test/tools/gold/invalid-dir.ll Fri Sep  9 17:14:57 2016
@@ -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:

Added: llvm/trunk/test/tools/gold/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/lit.local.cfg?rev=281109&view=auto
==============================================================================
--- llvm/trunk/test/tools/gold/lit.local.cfg (added)
+++ llvm/trunk/test/tools/gold/lit.local.cfg Fri Sep  9 17:14:57 2016
@@ -0,0 +1,2 @@
+if (not 'ld_plugin' in  config.available_features):
+   config.unsupported = True




More information about the llvm-commits mailing list