[llvm] 548ca05 - [NFC][Instrumentor] Fix write_config.ll test failure on Windows (#196382)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 11:53:32 PDT 2026
Author: Jinsong Ji
Date: 2026-05-07T18:53:27Z
New Revision: 548ca05d9cd0a12b24856a5ee7d997a51383b85f
URL: https://github.com/llvm/llvm-project/commit/548ca05d9cd0a12b24856a5ee7d997a51383b85f
DIFF: https://github.com/llvm/llvm-project/commit/548ca05d9cd0a12b24856a5ee7d997a51383b85f.diff
LOG: [NFC][Instrumentor] Fix write_config.ll test failure on Windows (#196382)
Use diff -b flag to ignore line ending differences when comparing
generated JSON with reference file. This prevents test failures on
Windows where the generated file has CRLF line endings.
Co-Authored-By: Claude Sonnet 4.5 <noreply at anthropic.com>
Co-authored-by: Claude Sonnet 4.5 <noreply at anthropic.com>
Added:
Modified:
llvm/test/Instrumentation/Instrumentor/write_config.ll
Removed:
################################################################################
diff --git a/llvm/test/Instrumentation/Instrumentor/write_config.ll b/llvm/test/Instrumentation/Instrumentor/write_config.ll
index ab6d0599279d2..dc02fca397137 100644
--- a/llvm/test/Instrumentation/Instrumentor/write_config.ll
+++ b/llvm/test/Instrumentation/Instrumentor/write_config.ll
@@ -1,3 +1,3 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt < %s -passes=instrumentor -instrumentor-write-config-file=%t.json
-; RUN:
diff %t.json %S/default_config.json
+; RUN:
diff -b %t.json %S/default_config.json
More information about the llvm-commits
mailing list