Details
- Reviewers
keith - Group Reviewers
Restricted Project - Commits
- rG96fb7d059da1: [lld-macho][test] Add test for UUID format
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/MachO/uuid.s | ||
---|---|---|
6 | How come we can't do strict match here? It shouldn't ever change right? Also, {{([[:xdigit:]]{8})}} should be 12? LC_UUID shows 12 characters for me on that. |
lld/test/MachO/uuid.s | ||
---|---|---|
6 |
The UUID is a hash, so if we e.g. adjusted how LLD encodes something in the mach header, this would change. It would be annoying to have to update it every time something like that happens. Also, by using a regex, we can make it clear what behavior is invariant across all binaries, not just this specific one.
Whoops, you're right, good catch! |
How come we can't do strict match here? It shouldn't ever change right? Also, {{([[:xdigit:]]{8})}} should be 12? LC_UUID shows 12 characters for me on that.