Changeset 2089 for trunk/src/libctests/glibc/stdlib/test-canon.c
- Timestamp:
- Jun 27, 2005, 5:05:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/stdlib/test-canon.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2088 r2089 112 112 && strcmp (result + cwd_len, expected + 1) == 0); 113 113 else 114 good = (strcmp (expected, result) == 0); 114 { 115 good = (strcmp (expected, result) == 0); 116 #ifdef __EMX__ 117 if (!good && expected[0] == '/' && result[1] == ':' && result[2] == '/') 118 good = (strcmp (expected, result + 2) == 0); 119 #endif 120 } 115 121 116 122 return good; … … 158 164 symlink (symlinks[i].value, symlinks[i].name); 159 165 166 int rmdir_etc = mkdir ("/etc", 0777) == 0; 167 160 168 int has_dir = mkdir ("doesExist", 0777) == 0; 161 169 … … 213 221 } 214 222 223 #ifdef __EMX__ 224 if (fd >= 0) /* cannot unlink open files */ 225 close (fd); 226 #endif 215 227 if (fd >= 0) 216 228 unlink ("doesExist/someFile"); … … 218 230 if (has_dir) 219 231 rmdir ("doesExist"); 232 233 if (rmdir_etc) 234 rmdir ("/etc"); 220 235 221 236 for (i = 0; i < (int) (sizeof (symlinks) / sizeof (symlinks[0])); ++i) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.