Changeset 2089 for trunk/src/libctests/glibc/stdlib
- Timestamp:
- Jun 27, 2005, 5:05:29 AM (20 years ago)
- Location:
- trunk/src/libctests/glibc/stdlib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/stdlib/bug-strtod.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2088 r2089 22 22 #include <stdlib.h> 23 23 #include <string.h> 24 #ifdef __EMX__ /* one of the above seems to be declaring ssize_t... glibc feat I guess. */ 25 #include <sys/types.h> 26 #endif 24 27 25 28 -
Property cvs2svn:cvs-rev
changed from
-
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
-
trunk/src/libctests/glibc/stdlib/testsort.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2088 r2089 10 10 11 11 int 12 main ( void)12 main (int argc, char **argv) 13 13 { 14 14 char bufs[500][20]; … … 16 16 size_t lens[500]; 17 17 size_t i, j; 18 int errors; 18 19 19 20 srandom (1); … … 30 31 qsort (lines, 500, sizeof (char *), compare); 31 32 32 for (i = 0; i < 500 && lines[i] != NULL; ++i) 33 puts (lines[i]); 33 for (i = 0, errors = 0; i < 499; ++i) 34 if (!lines[i] || !lines[i + 1] || strcmp(lines[i], lines[i + 1]) > 0) 35 errors++; 34 36 35 return 0; 37 if (errors) 38 { 39 printf("%s: %d errors!\n", argv[0], errors); 40 for (i = 0; i < 500 && lines[i] != NULL; ++i) 41 puts (lines[i]); 42 } 43 44 return !!errors; 36 45 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/stdlib/tst-strtod.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2088 r2089 222 222 locale_test (void) 223 223 { 224 #ifdef HAVE___STRTOD_INTERNAL 224 225 static const struct 225 226 { … … 272 273 if (result == 0) 273 274 puts ("all OK"); 274 275 275 return result; 276 } 276 #else /* NO __strtod_internal */ 277 return 0; 278 #endif 279 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.