Specifically for: !tbaa, !tbaa.struct, !annotation, !srcloc, !nosanitize.
The goal is to avoid test brittleness caused by hardcoded values.
Paths
| Differential D123273
[utils] Avoid hardcoding metadata ids in update_cc_test_checks ClosedPublic Authored by jkorous on Apr 6 2022, 7:45 PM.
Details Summary Specifically for: !tbaa, !tbaa.struct, !annotation, !srcloc, !nosanitize. The goal is to avoid test brittleness caused by hardcoded values.
Diff Detail
Event TimelineComment Actions Can you follow the pattern of how the tests for other update utils are written, by autogenerating the check lines, committing such a file, and comparing that newly-generated checlines don't differ? Comment Actions Sure, will do! I intended to keep the tests simple but understand the desire for consistency. This revision is now accepted and ready to land.May 10 2022, 7:14 AM
This revision was landed with ongoing or failed builds.May 10 2022, 10:18 AM Closed by commit rGce583b14b2ec: [utils] Avoid hardcoding metadata ids in update_cc_test_checks (authored by jkorous). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Hi @jkorous, 4 of the tests you added seem to be failing on the PS4 linux and Window buildbots, can you take a look, and revert if it might take a while to investigate? https://lab.llvm.org/buildbot/#/builders/139/builds/21573 Comment Actions Also fails on linux: https://lab.llvm.org/buildbot/#/builders/109/builds/38285 And on mac: http://45.33.8.238/macm1/35024/step_7.txt (On some platforms, the bot redness was masked by D124552 breaking the bots first.) But yes, please fix or revert. Comment Actions 4 of the tests fail on AIX also: https://lab.llvm.org/buildbot/#/builders/214/builds/1207
Revision Contents
Diff 428424 clang/test/utils/update_cc_test_checks/Inputs/annotation-id.c
clang/test/utils/update_cc_test_checks/Inputs/annotation-id.expected
clang/test/utils/update_cc_test_checks/Inputs/nosanitize-id.c
clang/test/utils/update_cc_test_checks/Inputs/nosanitize-id.expected
clang/test/utils/update_cc_test_checks/Inputs/srcloc-id.c
clang/test/utils/update_cc_test_checks/Inputs/srcloc-id.expected
clang/test/utils/update_cc_test_checks/Inputs/tbaa-id.c
clang/test/utils/update_cc_test_checks/Inputs/tbaa-id.expected
clang/test/utils/update_cc_test_checks/Inputs/tbaa-struct-id.c
clang/test/utils/update_cc_test_checks/Inputs/tbaa-struct-id.expected
clang/test/utils/update_cc_test_checks/annotation-id.test
clang/test/utils/update_cc_test_checks/nosanitize-id.test
clang/test/utils/update_cc_test_checks/srcloc-id.test
clang/test/utils/update_cc_test_checks/tbaa-id.test
clang/test/utils/update_cc_test_checks/tbaa-struct-id.test
llvm/utils/UpdateTestChecks/common.py
|
Style: Maybe realign the above again.