-
Notifications
You must be signed in to change notification settings - Fork 177
Refactor Image(Display, int, int) in Tests (No Ops) #2221
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
Refactor Image(Display, int, int) in Tests (No Ops) #2221
Conversation
87b264c
to
026ee02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR overlaps with #2229. Please consider the comments I made there and please revise the PRs so that they do not change the same lines of code in the semantically same but syntactically different ways.
tests/org.eclipse.swt.tests.win32/JUnit Tests/org/eclipse/swt/graphics/ImageWin32Tests.java
Outdated
Show resolved
Hide resolved
242be4b
to
f724256
Compare
f724256
to
7d603c9
Compare
7d603c9
to
7438662
Compare
7438662
to
f5d1056
Compare
@ShahzaibIbrahim is there anything else to do here from your side or have all comments been addressed? I see that some conversations are still open. Also, the test |
f5d1056
to
80df3da
Compare
All the comments were addressed but it needs to be re-reviewed. |
The comments in #2229 have been addressed
@akurtakov the test test_isLocal fails for this PR only in the CI. Do you have any idea what is it about? |
My educated guess is that this check fails because SWT was not built for Linux in this PR and the check basically says "you're not testing your changes, you're testing But this is irrelevant since this PR doesn't change any production code that needs to be tested, it changes only the tests. So technically, it is OK to test Am I seeing this right, @akurtakov ? |
I am traveling so I can't look into things this week. Please remind me next week if there is still a problem to look into it. |
Replacing Image(Display, int, int) with Image(Display, ImageGcDrawer, int, int) in Tests. Basic Case.
80df3da
to
06fbe94
Compare
Thank you for fixing it, @akurtakov ! May I ask what was the trick? If you merely rebased on |
I have just rebased it :) . My gut feeling is that this error appears in a period when a commit makes the build produce different artifact compared to last I-build or smth similar and it starts working after the next build is in I-build repo. I haven't looked whether that's the case so I could be totally wrong too. |
Ok, but at least I have something to try the next time I see this check fail. Thank you for the hint! |
Replacing Image(Display, int, int) with Image(Display, ImageGcDrawer, int, int) in Tests. Basic Case