Lines Matching refs:path
33 // relative bad path (note p8 msgs differ)
42 //absolute bad path (note p8 msgs differ)
75 foreach($paths as $path) {
76 echo "--- testing $path ---\n";
78 if (is_dir($path) || is_file($path)) {
79 echo "FAILED: $path - exists\n";
82 $res = touch($path);
85 if (file_exists($path)) {
87 if (is_dir($path)) {
88 echo "FAILED: $path - unexpected directory\n";
91 echo "PASSED: $path - created\n";
92 unlink($path);
97 echo "FAILED: $path - touch returned true, nothing there\n";
102 if (file_exists($path)) {
104 echo "FAILED: $path - touch returned false, something there\n";
105 if (is_dir($path)) {
106 rmdir($path);
109 unlink($path);
118 foreach($paths as $path) {
120 $res = @mkdir($path);
122 test_path($path);
123 rmdir($path);
127 $h = @fopen($path,"w");
130 test_path($path);
131 unlink($path);
138 function test_path($path) {
139 echo "--- testing $path ---\n";
140 $org_atime = get_atime($path);
142 $res = touch($path,0,0);
143 $next_atime = get_atime($path);
145 echo "FAILED: $path - access time not changed\n";
148 echo "PASSED: $path - touched\n";
152 function get_atime($path) {
153 $temp = stat($path);