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

Pipes are not detected correctly on Windows #36

Open
dwnusbaum opened this issue Apr 12, 2018 · 0 comments
Open

Pipes are not detected correctly on Windows #36

dwnusbaum opened this issue Apr 12, 2018 · 0 comments

Comments

@dwnusbaum
Copy link
Member

dwnusbaum commented Apr 12, 2018

While integrating version 1.11 into the Jenkins File Leak Detector Plugin, I found that pipes are not detected correctly on Windows. See jenkinsci/file-leak-detector-plugin#3.

Test failure when running mvn integration-test on Windows 10 (all other tests pass):

testPipe(org.kohsuke.file_leak_detector.instrumented.PipeDemo)  Time elapsed: 0.004 sec  <<< FAILURE!
java.lang.AssertionError: No source channel record found
    at org.junit.Assert.fail(Assert.java:93)
    at org.junit.Assert.assertTrue(Assert.java:43)
    at org.junit.Assert.assertNotNull(Assert.java:526)
    at org.kohsuke.file_leak_detector.instrumented.PipeDemo.testPipe(PipeDemo.java:43)

It isn't immediately obvious to me why the AbstractSelectableChannel transformer isn't working. I traced the call chain for opening a Pipe on Windows but it looks like it should call the AbstractSelectableChannel constructor so maybe something else is going on.

I don't think this ever worked, so I guess it makes sense to treat it as a new feature.

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

No branches or pull requests

1 participant