Skip to content

Incorrect folder name is printed for each test #76

Closed
@RalfJung

Description

@RalfJung

In miri, we have a folder compile-fail-fullmir for compile-fail tests that need a different setup than those in compile-fail. This reveals that compiletest prints the wrong path to the file that it is testing:

## Running compile-fail tests in tests/compile-fail-fullmir against miri for target x86_64-unknown-linux-gnu

running 1 test
test [compile-fail] compile-fail/undefined_byte_read.rs ... ok

This says the file name is compile-fail/undefined_byte_read.rs while it really is compile-fail-fullmir/undefined_byte_read.rs. compiletest seems to use the suite name when printing the folder name, which is not in general correct.

I tried to fix this myself, but unfortunately I could not even find the place in the code that does this printing...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions