[ 
https://issues.apache.org/jira/browse/GEODE-4244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruce Schuchardt closed GEODE-4244.
-----------------------------------

> unit test rule method "withTempWorkingDir()" can cause code to malfunction
> --------------------------------------------------------------------------
>
>                 Key: GEODE-4244
>                 URL: https://issues.apache.org/jira/browse/GEODE-4244
>             Project: Geode
>          Issue Type: Bug
>          Components: management
>            Reporter: Bruce Schuchardt
>            Priority: Major
>
> We have a number of unit test Rules that offer a withTempWorkingDir() method 
> that supposedly changes the current working directory of the JVM to a 
> temporary folder.  This method merely sets the system property "user.dir" to 
> that directory's path - it does not change the actual working directory of 
> the process.
> Because of this any file/io using paths relative to the current working 
> directory may malfunction because they refer to the actual current working 
> directory and not user.dir.
> The withTempWorkingDir() methods need to have a warning about this. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to