about summary refs log tree commit diff
path: root/tests/ui/instrument-xray
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-02-09Test XRay only for supported targetsOleksii Lozovskyi-0/+5
Now that the compiler accepts "-Z instrument-xray" option only when targeting one of the supported targets, make sure to not run the codegen tests where the compiler will fail. Like with other compiletests, we don't have access to internals, so simply hardcode a list of supported architectures here.
2023-02-09Emit an error if -Z instrument-xray is not supportedOleksii Lozovskyi-0/+13
This is somewhat important because LLVM enables the pass based on target architecture, but support by the target OS also matters. For example, XRay attributes are processed by codegen for macOS targets, but Apple linker fails to process relocations in XRay data sections, so the feature as a whole is not supported there for the time being.
2023-02-09UI tests for -Z instrument-xrayOleksii Lozovskyi-0/+40
I'm tired of testing it manually, just codify my expectations in tests. They're pretty low-maintenance.