--TEST-- Test rename() function: usage variations --SKIPIF-- --FILE-- --CLEAN-- --EXPECTF-- *** Testing variations of rename() on files *** -- Iteration 1 -- bool(true) -- Iteration 2 -- bool(true) -- Iteration 3 -- bool(true) -- Iteration 4 -- Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) Warning: unlink(%s): No such file or directory in %s on line %d *** Testing variations of rename() on directories *** -- Iteration 1 -- bool(true) -- Iteration 2 -- bool(true) -- Iteration 3 -- bool(true) -- Iteration 4 -- Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 5 -- Warning: rename(.,%s): Permission denied in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 6 -- Warning: rename(,%s): Permission denied in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 7 -- Warning: rename(,%s): Permission denied in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 8 -- Warning: rename( ,%s): File exists in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 9 -- Warning: rename( ,%s): File exists in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d *** Testing rename() with non-existing file and directory *** Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) *** Testing rename() by renaming a file and directory to numeric name *** bool(true) bool(true) *** Testing rename() with miscelleneous input *** -- Renaming file to same file name -- bool(true) -- Renaming directory to same directory name -- bool(true) -- Renaming existing file to directory name -- Warning: rename(%s,%s): File exists in %s on line %d bool(false) -- Renaming existing directory to file name -- Warning: rename(%s,%s): File exists in %s on line %d bool(false) Done --UEXPECTF-- *** Testing variations of rename() on files *** -- Iteration 1 -- bool(true) -- Iteration 2 -- bool(true) -- Iteration 3 -- bool(true) -- Iteration 4 -- Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) Warning: unlink(%s): No such file or directory in %s on line %d *** Testing variations of rename() on directories *** -- Iteration 1 -- bool(true) -- Iteration 2 -- bool(true) -- Iteration 3 -- bool(true) -- Iteration 4 -- Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 5 -- Warning: rename(.,%s): Permission denied in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 6 -- Warning: rename(,%s): Permission denied in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 7 -- Warning: rename(,%s): Permission denied in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 8 -- Warning: rename( ,%s): File exists in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d -- Iteration 9 -- Warning: rename( ,%s): File exists in %s on line %d bool(false) Warning: rmdir(%s): No such file or directory in %s on line %d *** Testing rename() with non-existing file and directory *** Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) Warning: rename(%s,%s): No such file or directory in %s on line %d bool(false) *** Testing rename() by renaming a file and directory to numeric name *** bool(true) bool(true) *** Testing rename() with miscelleneous input *** -- Renaming file to same file name -- bool(true) -- Renaming directory to same directory name -- bool(true) -- Renaming existing file to directory name -- Warning: rename(%s,%s): File exists in %s on line %d bool(false) -- Renaming existing directory to file name -- Warning: rename(%s,%s): File exists in %s on line %d bool(false) Done