Test C++ rename()