filer icon indicating copy to clipboard operation
filer copied to clipboard

Add test for rename() when oldPath and newPath are the same

Open VictorKubrak opened this issue 6 years ago • 2 comments

I found out that existing tests do not test this case. Function should not rename the file, then it returns success status. I would like to add this test myself.

VictorKubrak avatar Sep 24 '18 20:09 VictorKubrak

OK @VictorKubrak, go for it.

humphd avatar Sep 24 '18 20:09 humphd

By the looks of things in other issues - the goal is to move closer to IEEE standard. Consider looking at The Open Group this will show what the expected behaviour of this function is. I did not see any restrictions on renaming a file with the same name. Nevertheless - its probably a missing test!

Pooch11 avatar Sep 27 '18 12:09 Pooch11