[lld] r248498 - Add a test covering ELFFile's constructor failing.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 07:55:25 PDT 2015


Author: rafael
Date: Thu Sep 24 09:55:25 2015
New Revision: 248498

URL: http://llvm.org/viewvc/llvm-project?rev=248498&view=rev
Log:
Add a test covering ELFFile's constructor failing.

Added:
    lld/trunk/test/elf2/Inputs/invalid-shstrndx.so   (with props)
Modified:
    lld/trunk/test/elf2/invalid-elf.test

Added: lld/trunk/test/elf2/Inputs/invalid-shstrndx.so
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/Inputs/invalid-shstrndx.so?rev=248498&view=auto
==============================================================================
Binary files lld/trunk/test/elf2/Inputs/invalid-shstrndx.so (added) and lld/trunk/test/elf2/Inputs/invalid-shstrndx.so Thu Sep 24 09:55:25 2015 differ

Propchange: lld/trunk/test/elf2/Inputs/invalid-shstrndx.so
------------------------------------------------------------------------------
    svn:executable = *

Modified: lld/trunk/test/elf2/invalid-elf.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/invalid-elf.test?rev=248498&r1=248497&r2=248498&view=diff
==============================================================================
--- lld/trunk/test/elf2/invalid-elf.test (original)
+++ lld/trunk/test/elf2/invalid-elf.test Thu Sep 24 09:55:25 2015
@@ -17,3 +17,6 @@ INVALID-BINDING: unexpected binding
 RUN: not lld -flavor gnu2 %p/Inputs/invalid-section-index.elf -o %t2 2>&1 | \
 RUN:   FileCheck --check-prefix=INVALID-SECTION-INDEX %s
 INVALID-SECTION-INDEX: Invalid section index
+
+RUN: not lld -flavor gnu2 %p/Inputs/invalid-shstrndx.so -o %t2 2>&1 | \
+RUN:   FileCheck --check-prefix=INVALID-SECTION-INDEX %s




More information about the llvm-commits mailing list