Index: test/tools/gold/invalid-dir.ll =================================================================== --- /dev/null +++ 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: test/tools/gold/lit.local.cfg =================================================================== --- /dev/null +++ test/tools/gold/lit.local.cfg @@ -0,0 +1,2 @@ +if (not 'ld_plugin' in config.available_features): + config.unsupported = True Index: test/tools/gold/nofile.ll =================================================================== --- /dev/null +++ test/tools/gold/nofile.ll @@ -0,0 +1,5 @@ +; RUN: rm -rf %t.notexists +; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so -shared \ +; RUN: %t.notexists 2>&1 | FileCheck %s -check-prefix=ENOENT + +; ENOENT: No such file or directory