Lines Matching refs:path
25 // relative bad path (note p8 msgs differ)
34 //absolute bad path (note p8 msgs differ)
64 foreach($paths as $path) {
65 echo "--- testing $path ---\n";
67 if (is_dir($path) || is_file($path)) {
68 echo "FAILED: $path - exists\n";
71 $res = touch($path);
74 if (file_exists($path)) {
76 if (is_dir($path)) {
77 echo "FAILED: $path - unexpected directory\n";
80 echo "PASSED: $path - created\n";
81 unlink($path);
86 echo "FAILED: $path - touch returned true, nothing there\n";
91 if (file_exists($path)) {
93 echo "FAILED: $path - touch returned false, something there\n";
94 if (is_dir($path)) {
95 rmdir($path);
98 unlink($path);
107 foreach($paths as $path) {
109 $res = @mkdir($path);
111 test_path($path);
112 rmdir($path);
116 $h = @fopen($path,"w");
119 test_path($path);
120 unlink($path);
127 function test_path($path) {
128 echo "--- testing $path ---\n";
129 $org_atime = get_atime($path);
131 $res = touch($path,0,0);
132 $next_atime = get_atime($path);
134 echo "FAILED: $path - access time not changed\n";
137 echo "PASSED: $path - touched\n";
141 function get_atime($path) {
142 $temp = stat($path);