[PATCH] D65068: [Object/llvm-readobj] - Cleanup testing of the dynamic objects.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 10:02:51 PDT 2019


jhenderson added inline comments.


================
Comment at: test/Object/readobj-shared-object.test:15-18
-ELF64: Format:      ELF64-x86-64
-ELF64: Arch:        x86_64
-ELF64: AddressSize: 64bit
-ELF64: LoadName:    libfoo.so
----------------
Do we have testing elsewhere for this part of the printing?


================
Comment at: test/tools/llvm-readobj/elf-dynamic-tags.test:1
-# Show that all non-machine specific tags can be read and printed correctly.
+## Show that all non-machine specific tags can be read and printed correctly.
+
----------------
Seems like this should be a separate NFC commit? This file is otherwise unchanged.


================
Comment at: test/tools/llvm-readobj/elf-file-headers.test:1
-# RUN: yaml2obj %s --docnum=1 -o %t.i386
-# RUN: llvm-readobj -h %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386
+# RUN: yaml2obj %s --docnum=1 -o %t.i386.o
+# RUN: llvm-readobj -h %t.i386.o \
----------------
It feels like the machine type and ELF type are two orthoganol test cases that don't need combinatorially testing. Why not also test ET_EXEC and ET_CORE in this manner after all?

Perhaps a separate test file would be sensible, with tests for each different ELF type, focused just on testing that field?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65068/new/

https://reviews.llvm.org/D65068





More information about the llvm-commits mailing list