Lines Matching refs:path
24 // relative bad path (note p8 msgs differ)
33 //absolute bad path (note p8 msgs differ)
63 foreach($paths as $path) {
64 echo "--- testing $path ---\n";
66 if (is_dir($path) || is_file($path)) {
67 echo "FAILED: $path - exists\n";
70 $res = touch($path);
73 if (file_exists($path)) {
75 if (is_dir($path)) {
76 echo "FAILED: $path - unexpected directory\n";
79 echo "PASSED: $path - created\n";
80 unlink($path);
85 echo "FAILED: $path - touch returned true, nothing there\n";
90 if (file_exists($path)) {
92 echo "FAILED: $path - touch returned false, something there\n";
93 if (is_dir($path)) {
94 rmdir($path);
97 unlink($path);
106 foreach($paths as $path) {
108 $res = @mkdir($path);
110 test_path($path);
111 rmdir($path);
115 $h = @fopen($path,"w");
118 test_path($path);
119 unlink($path);
126 function test_path($path) {
127 echo "--- testing $path ---\n";
128 $org_atime = get_atime($path);
130 $res = touch($path,0,0);
131 $next_atime = get_atime($path);
133 echo "FAILED: $path - access time not changed\n";
136 echo "PASSED: $path - touched\n";
140 function get_atime($path) {
141 $temp = stat($path);