[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 missing files
+
+# RUN: not json-diff %S/nonexistent.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/nonexistent.json 2>&1 | FileCheck %s --check-prefix=ERROR2
+# ERROR2: Error: failed to read JSON from
----------------
hnrklssn wrote:

ditto

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


More information about the llvm-commits mailing list