--TEST-- Test rename() function: usage variations --SKIPIF-- --FILE-- --CLEAN-- --EXPECTF-- *** Testing rename() : rename files across directories *** -- Iteration 1 -- bool(true) bool(false) bool(true) -- Iteration 2 -- Warning: rename(%s,%s): Not a directory in %s on line %d bool(false) bool(false) bool(false) Warning: unlink(%s): No such file or directory in %s on line %d -- Iteration 3 -- bool(true) bool(false) bool(true) -- Iteration 4 -- bool(true) bool(false) bool(true) *** Testing rename() : renaming directory across directories *** -- Iteration 1 -- bool(true) bool(false) bool(true) -- Iteration 2 -- bool(true) bool(false) bool(true) -- Iteration 3 -- bool(true) bool(false) bool(true) *** Testing rename() on soft links *** bool(true) bool(false) bool(true) bool(true) bool(false) bool(true) *** Testing rename() on hard links *** bool(true) bool(false) bool(true) bool(true) bool(false) bool(true) *** Testing rename() by renaming a file, link and directory to numeric name *** bool(true) bool(false) bool(true) bool(true) bool(false) bool(true) -- Renaming link to same link name -- bool(true) -- Renaming file to same file name -- bool(true) -- Renaming directory to same directory name -- bool(true) -- Renaming existing link to existing directory name -- Warning: rename(%s,%s): Is a directory in %s on line %d bool(false) -- Renaming existing link to existing file name -- bool(true) -- Renaming existing file to existing directory name -- Warning: rename(%s,%s): Is a directory in %s on line %d bool(false) -- Renaming existing file to existing link name -- bool(true) -- Renaming existing directory to existing file name -- Warning: rename(%s,%s): Not a directory in %s on line %d bool(false) -- Renaming existing directory to existing link name -- Warning: rename(%s,%s): Not a directory in %s on line %d bool(false) Done