This is an old problem with the use of scratch data areas. I suspect if you ran the tests in /tmp or perhaps /usr/tmp it would work. The code should be changed to more intelligently find the current directory so the rename would work. In addition, it should not fail, but fall back on a copy and delete if the rename fails.
netcdfgroup
archives: