Skip to content

Commit a8034d1

Browse files
authored
[analyzer] Use sed from the ToolBox on AIX (NFC) (#161242)
The change in commit 30402c7 breaks the tests on AIX. This patch is to change to use the `sed` from AIX Toolbox instead of the default one which does not support `-r` and `-E`.
1 parent 0f80f18 commit a8034d1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-file-diagnostics.c.sarif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@
141141
}
142142
],
143143
"version": "[SARIF version]"
144-
}
144+
}

clang/test/Analysis/lit.local.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ config.substitutions.append(
1717
)
1818
)
1919

20+
sed_cmd = "/opt/freeware/bin/sed" if "system-aix" in config.available_features else "sed"
21+
2022
# Filtering command for testing SARIF output against reference output.
2123
config.substitutions.append(
2224
(
2325
"%normalize_sarif",
24-
"sed -r '%s;%s;%s;%s'"
26+
f"{sed_cmd} -r '%s;%s;%s;%s'"
2527
% (
2628
# Replace version strings that are likely to change.
2729
r's/"version": ".* version .*"/"version": "[clang version]"/',

0 commit comments

Comments
 (0)