[lld] r356334 - [LLD][ELF] - Replace one of the tests with a YAML version.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 08:46:03 PDT 2019
Author: grimar
Date: Sun Mar 17 08:46:03 2019
New Revision: 356334
URL: http://llvm.org/viewvc/llvm-project?rev=356334&view=rev
Log:
[LLD][ELF] - Replace one of the tests with a YAML version.
This removes one more binary from the inputs.
Differential revision: https://reviews.llvm.org/D59085
Added:
lld/trunk/test/ELF/invalid/data-encoding.test
Removed:
lld/trunk/test/ELF/invalid/Inputs/data-encoding.a
Modified:
lld/trunk/test/ELF/invalid/invalid-elf.test
Removed: lld/trunk/test/ELF/invalid/Inputs/data-encoding.a
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/Inputs/data-encoding.a?rev=356333&view=auto
==============================================================================
Binary file - no diff available.
Added: lld/trunk/test/ELF/invalid/data-encoding.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/data-encoding.test?rev=356334&view=auto
==============================================================================
--- lld/trunk/test/ELF/invalid/data-encoding.test (added)
+++ lld/trunk/test/ELF/invalid/data-encoding.test Sun Mar 17 08:46:03 2019
@@ -0,0 +1,17 @@
+# REQUIRES: x86
+
+# The object in the archive has invalid data encoding.
+# Check we report this.
+
+# RUN: yaml2obj %s -o %t.o
+# RUN: llvm-ar rcs %t.a %t.o
+
+# RUN: not ld.lld --whole-archive %t.a -o /dev/null 2>&1 | FileCheck %s
+# CHECK: {{.*}}.a({{.*}}.o): corrupted ELF file: invalid data encoding
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATANONE
+ Type: ET_REL
+ Machine: EM_X86_64
Modified: lld/trunk/test/ELF/invalid/invalid-elf.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid/invalid-elf.test?rev=356334&r1=356333&r2=356334&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid/invalid-elf.test (original)
+++ lld/trunk/test/ELF/invalid/invalid-elf.test Sun Mar 17 08:46:03 2019
@@ -8,10 +8,6 @@
# RUN: FileCheck --check-prefix=NOT-ELF %s
# NOT-ELF: not-elf.a(empty.o): not an ELF file
-# RUN: not ld.lld %t/simple.o %p/Inputs/data-encoding.a -o %t2 2>&1 | \
-# RUN: FileCheck --check-prefix=INVALID-DATA-ENC %s
-# INVALID-DATA-ENC: data-encoding.a(test.o): corrupted ELF file: invalid data encoding
-
# RUN: not ld.lld %t/simple.o %p/Inputs/file-class.a -o %t2 2>&1 | \
# RUN: FileCheck --check-prefix=INVALID-FILE-CLASS %s
# INVALID-FILE-CLASS: file-class.a(test.o): corrupted ELF file: invalid file class
More information about the llvm-commits
mailing list