[llvm] [llvm-readobj] Fixes malformed json on JSON printed corefiles (PR #92835)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 00:30:37 PDT 2024
================
@@ -3,6 +3,8 @@
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU
# RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM
+# RUN: llvm-readelf --elf-output-style=JSON --pretty-print --notes %t.o | FileCheck %s --check-prefix=JSON
+# RUN: llvm-readobj --elf-output-style=JSON --pretty-print --notes %t.o | FileCheck %s --check-prefix=JSON
----------------
jh7370 wrote:
Could you check prior art in other tests, please, but I don't think there's any value in `llvm-readelf` and `llvm-readobj` invocations where both use `--elf-output-style=JSON`.
https://github.com/llvm/llvm-project/pull/92835
More information about the llvm-commits
mailing list