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

Testament should run tests with no action #8232

Merged
merged 3 commits into from
Jul 9, 2018
Merged

Testament should run tests with no action #8232

merged 3 commits into from
Jul 9, 2018

Conversation

genotrance
Copy link
Contributor

Started with #5626 where test was never run, only compiled, since no action, output or exitCode check was defined in test case.

Per discussion on IRC, decision to make testament run tests if no action specified.

Fixed a few test cases which now break since they never ran before. Please review to confirm I made the right assumptions.

Also opened #8231 and commented out that test case until it gets fixed.

@genotrance genotrance closed this Jul 8, 2018
@genotrance genotrance reopened this Jul 8, 2018
Copy link
Contributor

@Varriount Varriount left a comment

Choose a reason for hiding this comment

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

Are the changes to the other tests intended?

@@ -16,6 +16,5 @@ proc main =
var leaf = "this is the leaf. it allocates"
let x = createCycle(leaf)
let y = createCycle(leaf)
echo "done ", getOccupiedMem()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cyclecollector.nim was never run before, only compiled. If you run it without an output check, test will fail since it does print something, so I removed the output altogether. getOccupiedMem() can vary by system so there's no guaranteed output to check against. Just printing done is pointless, return value check is sufficient.

@Varriount Varriount merged commit c115090 into nim-lang:devel Jul 9, 2018
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.

None yet

2 participants