Skip to content

Conversation

@jonahgraham
Copy link
Contributor

In #2686 I fixed/reenabled the leak detection reporting. This PR introduces a leaked image (and disables most tests) to verify that #2686 really is working.

This is not for merging (obviously?) but it set as non-draft so it runs on Jenkins as well as GHA.

While working on eclipse-platform#2685
and specifically trying to verify that change fixes the comment below \*
I realized that a migration step was missed changing the suites from
JUnit4 to JUnit5.

On JUnit5 the `@BeforeAll` and `@AfterAll` only apply to the tests in
the class itself, not to `@SelectClasses` too.

Instead JUnit5 provides `@BeforeSuite` and `@AfterSuite`

\* this comment:

> For some reason, printing to System.err in JUnit test has no effect
In eclipse-platform#2686
I fixed/reenabled the leak detection reporting. This PR
introduces a leaked image (and disables most tests) to verify
that eclipse-platform#2686
really is working.
@github-actions
Copy link
Contributor

Test Results

108 files   -    10  108 suites   - 10   5m 28s ⏱️ - 8m 32s
487 tests  - 4 160  482 ✅  - 4 147  4 💤  - 14  1 ❌ +1 
255 runs   -    75  255 ✅  -    71  0 💤  -  4  0 ❌ ±0 

For more details on these failures, see this check.

Results for commit bd31b37. ± Comparison against base commit c308fd1.

This pull request removes 4161 and adds 1 tests. Note that renamed tests count towards both.
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_dollarSign
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_emptyString
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_letterA
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_letters
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16LE_null
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_AsciiLetters
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_Asciiletter
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_LotsOfLetters
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_letter
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_letters
…
org.eclipse.swt.tests.junit.AllNonBrowserTests ‑ Unknown test

@jonahgraham
Copy link
Contributor Author

Leak detection works. For example https://ci.eclipse.org/releng/job/eclipse.platform.swt/job/PR-2687/1/testReport/junit/org.eclipse.swt.tests.junit/AllNonBrowserTests/___/ -- screenshot for when that link disappears:

image

See #2686 (comment) too.

Closing this now as it was just a test.

@jonahgraham jonahgraham deleted the verify-fixed-leak-detection-reports branch October 28, 2025 18:55
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.

1 participant