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

JBIDE-13911 - testUnzipOperationExecuteStringString() always fails on Windows #74

Merged
merged 1 commit into from
Apr 11, 2013

Conversation

snjeza
Copy link
Member

@snjeza snjeza commented Apr 3, 2013

https://issues.jboss.org/browse/JBIDE-13911
org.jboss.tools.common.zip.test.UnzipOperationTest.testUnzipOperationExecuteStringString() always fails on Windows

@@ -47,7 +47,7 @@ public void execute(File destination,String filter) throws IOException {
}

public void execute(String destination,String filter) throws IOException {
execute(new File(destination,filter));
execute(new File(destination), filter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering why this only fails on windows and not other OS's ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test tries to create the "org." directory.
It is a legal UNIX filename, but isn't allowed on Windows. See http://msdn.microsoft.com/en-us/library/aa365247.aspx.
Anyway, the test is invalid because it treats "org.
" as a filename instead of a filter.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like more than just this behavior bug needs fixing, the test should be fixed too then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test helped me to find this bug.
After applying this PR, the test and code will work correctly.

@alexeykazakov alexeykazakov merged commit c3c78c0 into jbosstools:master Apr 11, 2013
@alexeykazakov
Copy link
Contributor

Pushed to master and 4.1.0.Alpha2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants