Skip to content

ui_test: provide a way to match against labels #2483

Open
@RalfJung

Description

@RalfJung

With a stderr like this

full stderr:
error[E0080]: evaluation of constant value failed
  --> tests/fail/const-ub-checks.rs:6:9
   |
LL |         ptr.read();
   |         ^^^^^^^^^^ accessing memory with alignment 1, but alignment 4 is required

I'd like to be able to match not only against "evaluation of constant value failed", but also against "accessing memory with alignment 1, but alignment 4 is required", to ensure that it actually detected the right kind of problem.

This is a prerequisite for #2200.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsArea: affects our test suite or CIC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions