Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Allow the tooltip tests to run in isolation #1159

Merged
merged 2 commits into from
Nov 30, 2018

Conversation

aloucks
Copy link
Contributor

@aloucks aloucks commented Nov 30, 2018

Prior to this change, the tooltip tests were unknowingly dependent on the other test harness setting the RUSTC environment variable.

This caused the hover test project build to hang (e.g. when running cargo test tooltip). However, running cargo test hover would succeed due to the other test harness setting the environment variable.

Also renamed the hover test project's main.rs to lib.rs for correctness. The test project built before, but did not build successfully due to a missing main function.

Related: #1151

Copy link
Member

@Xanewok Xanewok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! Could you also add a comment why this is needed, please?

Prior to this change, the tooltip tests were unknowingly dependent
on the other test harness setting the `RUSTC` environment variable,
which caused the hover test project build to hang.

Also renamed the hover test project's `main.rs` to `lib.rs` for
correctness. The test project built before, but did not build
successfully due to a missing main function.
@aloucks aloucks force-pushed the tooltip-test-isolation branch from 923bf29 to 9c6f344 Compare November 30, 2018 19:11
@Xanewok Xanewok merged commit e646f99 into rust-lang:master Nov 30, 2018
@Xanewok
Copy link
Member

Xanewok commented Nov 30, 2018

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants