[PATCH] D81529: [ObjectYAML][test] Use a single test file to test the empty 'DWARF' entry.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 02:41:33 PDT 2020


grimar added inline comments.


================
Comment at: llvm/test/tools/yaml2obj/ELF/DWARF/empty-dwarf-entry.yaml:4
+# RUN: yaml2obj %s -o %t.o
+# RUN: llvm-readobj --sections %t.o | FileCheck /dev/null --implicit-check-not=debug
+
----------------
I'd go a bit stricter way here:

You can use `llvm-readelf --sections` and check the whole section header:

```
There are 3 section headers, starting at offset 0x58:

Section Headers:
  [Nr] Name
  [ 0]
  [ 1] .strtab
  [ 2] .shstrtab
```






Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81529





More information about the llvm-commits mailing list