[llvm] [llvm-readobj][ELF] Fix broken JSON output with --dynamic-table (PR #95976)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 00:30:56 PDT 2024


================
@@ -8,6 +8,9 @@
 # RUN: llvm-readelf --dynamic-table %t1 \
 # RUN:   | FileCheck %s --strict-whitespace --match-full-lines --check-prefix=GNU64
 # RUN: llvm-readelf -d %t1 | FileCheck %s --check-prefix=GNU64
+# RUN: llvm-readelf --dynamic-table --pretty-print --elf-output-style=JSON %t1 \
+# RUN:   | FileCheck %s --check-prefix=JSON64
----------------
jh7370 wrote:

Could you check what other JSON output testing does, please as to whether it uses `--match-full-lines` and `--strict-whitespace`? I suspect the majority don't, so nothing to change here, but some minor changes can be made to the output test patterns (see below).

https://github.com/llvm/llvm-project/pull/95976


More information about the llvm-commits mailing list