[llvm] [lit] Add JSON diffing support to lit (PR #177513)

Henrik G. Olsson via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 20:04:25 PST 2026


================
@@ -0,0 +1,7 @@
+# Test error handling for invalid JSON
+
+# RUN: not json-diff %S/invalid.json %S/dummy.json 2>&1 | FileCheck %s --check-prefix=ERROR1
+# ERROR1: Error: failed to read JSON from
+
+# RUN: not json-diff %S/dummy.json %S/invalid.json 2>&1 | FileCheck %s --check-prefix=ERROR2
+# ERROR2: Error: failed to read JSON from
----------------
hnrklssn wrote:

nit: these don't actually need separate prefixes. Feel free to ignore.

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


More information about the llvm-commits mailing list