Skip to content

Make MissingCoreLibTests a simple unit test #3356

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

Merged
merged 1 commit into from
Oct 20, 2017

Conversation

allanrenucci
Copy link
Contributor

I don't see pros for it being a vulpix test

compileFile("../tests/neg/nolib/Foo.scala", TestFlags(classPath, options)).checkExpectedErrors()
val source = "../tests/neg/nolib/Foo.scala"
val options = Array("-classpath", classPath, source)
val reporter = Main.process(options)
Copy link
Contributor

Choose a reason for hiding this comment

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

You are not handling the case where the compiler crashes, vulpix did that. A try/catch and assertTrue(false, ex.stackTrace) a good enough replacement.

Copy link
Contributor Author

@allanrenucci allanrenucci Oct 20, 2017

Choose a reason for hiding this comment

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

My understanding is that if something in the test crashes, the test fails

Copy link
Contributor

Choose a reason for hiding this comment

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

Right

@nicolasstucki nicolasstucki merged commit 6d7b9c0 into scala:master Oct 20, 2017
@allanrenucci allanrenucci deleted the missing-core-lib branch October 20, 2017 15:04
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.

2 participants