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

Fix failing tests that compare source of baseline methods #522

Merged
merged 1 commit into from
Jul 11, 2020

Conversation

tom95
Copy link
Contributor

@tom95 tom95 commented Jul 11, 2020

This is a proposal for fixing the issue where comparing the source of baseline methods fails in Squeak-trunk, because Squeak-trunk no longer logs the source code to the changes file when asked to #suspendSystemUpdateEventsDuring:.

We take two steps:

  1. replace t1 from the decompile string with spec
  2. pretty-print both strings so we can easily compare that the ASTs match

(cc'ing @j4yk since we had talked about it in the issue before)

In squeak, we do not log to the changes, meaning our original version will be the decompile string.
To still compare the two, we this replace the t1 in the decompile with the actual name and pretty-print both strings.
@dalehenrich
Copy link
Member

SmalltalkHub is down and that is causing the Pharo test failures ...

@dalehenrich dalehenrich merged commit 7d154b3 into Metacello:master Jul 11, 2020
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