Skip to content

Conversation

@jonahgraham
Copy link
Contributor

On Windows the temporary directory sometimes cannot be deleted because the files are still locked and you get an error like:

The process cannot access the file because it is being used by another process

This change allows the deletion of the temp directory to fail without failing the whole test. In case the temp dir can't be deleted a warning is printed on System.err

Fixes #2568

On Windows the temporary directory sometimes cannot be deleted because
the files are still locked and you get an error like:

The process cannot access the file because it is being used by another process

This change allows the deletion of the temp directory to fail without
failing the whole test. In case the temp dir can't be deleted a warning
is printed on System.err

Fixes #2568
@jonahgraham jonahgraham self-assigned this Oct 1, 2025
@laeubi
Copy link
Contributor

laeubi commented Oct 1, 2025

@jonahgraham maybe something to report to junit team so @TempDir might retry a bit longer or not fail completely?

@jonahgraham
Copy link
Contributor Author

Already discussions in JUnit about it - see link in the issue #2568 (comment)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2025

Test Results

  118 files  ±0    118 suites  ±0   12m 30s ⏱️ + 1m 25s
4 583 tests ±0  4 547 ✅ ±0  36 💤 ±0  0 ❌ ±0 
  330 runs  ±0    307 ✅ ±0  23 💤 ±0  0 ❌ ±0 

Results for commit 0e0f775. ± Comparison against base commit 254e91f.

@jonahgraham jonahgraham merged commit 749ed1a into eclipse-platform:master Oct 1, 2025
17 checks passed
@jonahgraham jonahgraham deleted the dont-fail-on-delete-temp branch October 1, 2025 17:54
@jonahgraham jonahgraham linked an issue Oct 24, 2025 that may be closed by this pull request
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.

Unknown test (org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_Clipboard) with error [GTK4] Implement Full Clipboard support for GTK4

2 participants