"alesj" wrote : "david.lloyd(a)jboss.com" wrote :
| | I think the explicit mount needs to be either part of the test case or part of the
test suite setup. Probably the latter. Then the unmount/cleanup would happen in the
teardown.
| I think we should also check an option of having auto-mount/unmount.
|
Auto mount is easy. It's the unmount that's the problem - that's how we get
into situations where we leak temp files everywhere. There's no way to detect when
the filesystem isn't used anymore. That's the whole reason for the explicit
mount/unmount design, and adding automount will just reintroduce the original problem
again. Correctness is more important that ease of use in this case. Though honestly,
keeping track of your resources and explicitly unmounting is not that hard - I don't
see why it is such a burden.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246489#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...