[PATCH] D59085: [LLD][ELF] - Replace one of the tests with a YAML version.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 08:45:00 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD356334: [LLD][ELF] - Replace one of the tests with a YAML version. (authored by grimar, committed by ).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D59085?vs=190224&id=191020#toc
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59085/new/
https://reviews.llvm.org/D59085
Files:
test/ELF/invalid/Inputs/data-encoding.a
test/ELF/invalid/data-encoding.test
test/ELF/invalid/invalid-elf.test
Index: test/ELF/invalid/data-encoding.test
===================================================================
--- test/ELF/invalid/data-encoding.test
+++ test/ELF/invalid/data-encoding.test
@@ -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
Index: test/ELF/invalid/invalid-elf.test
===================================================================
--- test/ELF/invalid/invalid-elf.test
+++ test/ELF/invalid/invalid-elf.test
@@ -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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59085.191020.patch
Type: text/x-patch
Size: 1387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190317/773799e9/attachment.bin>
More information about the llvm-commits
mailing list