Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functional-testing: Add test for GCCRS_EXTRA_ARGS #48

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

CohenArthur
Copy link
Member

@CohenArthur CohenArthur commented Jul 16, 2021

Closes #44

assert!(Harness::check_folder("invalid_code", FileType::Bin).is_err())
assert!(Harness::check_folder("invalid_code", FileType::Bin).is_err());

std::env::set_var("GCCRS_EXTRA_ARGS", "-Werror");
Copy link
Contributor

Choose a reason for hiding this comment

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

This will only work fine if you ensure that no other test is running at the same time. Currently there are no other tests, but I don't know if that will change in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but we are having issues with that in the whole harness since we also use env::set_current_dir(). I think it should only be "one test" that calls multiple functions. I mentioned it somewhere in a previous PR about testing, that since there was no way to set --test-threads=1 from a configuration file it was impossible to do otherwise

@CohenArthur CohenArthur merged commit 5523cdc into feature/functional-testing Jul 20, 2021
@CohenArthur CohenArthur deleted the add-env-args-test branch July 20, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants