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

core: fix tests by catching unhandled UndeclaredVariableWarnings #94

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

LinqLover
Copy link
Collaborator

@LinqLover LinqLover commented Jan 19, 2022

This is necessary to complement SUnit-ct.130, which treats unhandled warnings as a failure of the test case. Note that there are still some other things to do at the moment:

  • This particular exception is weird at all - a warning should not "do nothing" in its defaultAction, so maybe the superclass of this exception should be changed instead
  • smalltalkCI has not yet been told about the new semantics of warnings in tests (I'm on it).

Given these points, I'm parking this patch here for now until the above points have been resolved ...

Depends on #92.

LinqLover and others added 2 commits January 18, 2022 19:17
TestResult class >> #error is deprecated now.
This is necessary to complement SUnit-ct.130, which treats unhandled warnings as a failure of the test case. Note that there are still some other things to do at the moment:

* This particular exception is weird at all - a warning should not "do nothing" in its defaultAction, so maybe the superclass of this exception should be changed instead
* smalltalkCI has not yet been told about the new semantics of warnings in tests (I'm on it).

Given these points, I'm parking this patch here for now until the above points have been resolved ...
@tom95
Copy link
Collaborator

tom95 commented Jan 21, 2022

Merging temporarily to get the CI to be useful again :)

Will be reverted if needed.

@tom95 tom95 marked this pull request as ready for review January 21, 2022 15:09
@tom95 tom95 merged commit a5b75d2 into hpi-swa:master Jan 21, 2022
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