Skip to content

Cleanup: Move src/test/run-fail to src/test/ui #65440

Closed

Description

@Centril

We have a small amount of tests in src/test/run-fail; these should be moved over to various directories in src/test/ui depending on what the test is about. (See #65438 (comment) for one example of moving run-fail/ tests to ui/.) When moving each test in src/test/run-fail you have to add // run-fail to the top of each file.

cc @varkor

This issue has been assigned to @nvlbg via this comment.

Activity

  1. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.
    A-testsuiteArea: The testsuite used to check the correctness of rustc
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    E-help-wantedCall for participation: Help is requested to fix this issue.
    on Oct 15, 2019
  2. nvlbg commented on Oct 15, 2019

    @nvlbg

    I'd like to work on this. First time contributor so it make take me some time to finish it.

  3. Centril commented on Oct 15, 2019

    @Centril
    ContributorAuthor
  4. self-assigned this
    on Oct 15, 2019
  5. estebank commented on Oct 15, 2019

    @estebank
    Contributor

    Note that some of those tests are still there due to non-determinism in the output across multiple platforms. Those should be restricted to run on only one platform to be able to do this move.

  6. varkor commented on Oct 15, 2019

    @varkor
    Contributor

    Those should be restricted to run on only one platform to be able to do this move.

    We should make sure to cross reference these with issues too.

  7. nvlbg commented on Oct 16, 2019

    @nvlbg

    @estebank are these tests marked somehow? Also how are tests restricted to a single platform?

    Edit: I found the following comments in the tests:

    // ignore-cloudabi no std::process
    // ignore-cloudabi no std::process
    // ignore-cloudabi no std::process
    // ignore-cloudabi no std::process
    // ignore-cloudabi no std::process
    // ignore-emscripten Needs threads
    // ignore-emscripten Needs threads.
    // ignore-emscripten Needs threads.
    // ignore-emscripten
    // ignore-emscripten
    // ignore-emscripten
    // ignore-cloudabi no std::env
    

    Are those the flags that some platforms need to be ignored?

  8. estebank commented on Oct 16, 2019

    @estebank
    Contributor

    I believe those in particular aren't the ones u was thinking about, but they are marked with ignore- tags. I think they might be either ignore-x86 or ignore-musl, something along those lines.

  9. Centril commented on Oct 16, 2019

    @Centril
    ContributorAuthor

    Generally speaking, a trial and error approach should work here... work through the tests a few at a time and see what will go through CI.

  10. JesterOrNot commented on Nov 6, 2019

    @JesterOrNot

    I would like to help with this

  11. added a commit that references this issue on May 9, 2020
    1704dca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions