-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
UnresolvedExpressionSecurityManagerTestCase was created in the https://issues.redhat.com/projects/WFCORE/issues/WFCORE-7335, note that it is currently not yet pushed/resolved. Issue was for now created so it can be noted in the comment with appropriate issue key.
Test fails in a Windows OS environment due to:
java.nio.file.FileSystemException: C:\BuildAgent\work\aa7b981af3f49e3c\testsuite\manualmode\target\wildfly-core\standalone\log\UnresolvedExpressionSecurityManagerTestCase.log: The process cannot access the file because it is being used by another process at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
(see attachment for the entire log)
Test is working with `TestLogHandlerSetupTask`, same way the `InstallationManagerBootTestCase` and `JandexIndexCachingTestCase` does, yet their individual tests work in a Windows OS env.
For now, the test is disabled (skipped) in a Windows OS env via:
// FIXME: [WFCORE-7500] - UnresolvedExpressionSecurityManagerTestCase fails in
// Windows environments
if (TestSuiteEnvironment.isWindows()) {
throw new AssumptionViolatedException(
"FIXME: [WFCORE-7500] - UnresolvedExpressionSecurityManagerTestCase fails in Windows environments");
}