Changeset 2135 for trunk/src/libctests/glibc/posix
- Timestamp:
- Jul 1, 2005, 6:20:01 AM (20 years ago)
- Location:
- trunk/src/libctests/glibc/posix
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/posix/bug-glob2.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r2134 r2135 23 23 #include <dirent.h> 24 24 #include <glob.h> 25 #ifdef HAVE_MCHECK_H26 25 #include <mcheck.h> 27 #endif28 26 #include <stdlib.h> 29 27 #include <stdio.h> … … 270 268 do_test (void) 271 269 { 272 #ifdef HAVE_MCHECK_H273 270 mtrace (); 274 #endif275 271 276 272 glob_t gl; … … 299 295 globfree (&gl); 300 296 301 #ifdef HAVE_MCHECK_H302 297 muntrace (); 303 #endif304 298 305 299 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/bug-regex1.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r2134 r2135 18 18 19 19 setlocale (LC_ALL, "de_DE.ISO-8859-1"); 20 #ifdef HAVE_FWIDE21 20 fwide (stdout, -1); 22 21 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/runptests.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 43 43 size_t cnt; 44 44 int errors = 0; 45 int errors_expected = argc > 1 ? atoi(argv[argc - 1]) : 0; 45 46 46 47 for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt) … … 118 119 } 119 120 120 printf ("\n%Zu tests, %d errors \n", cnt, errors);121 printf ("\n%Zu tests, %d errors, expected %d\n", cnt, errors, errors_expected); 121 122 122 return errors != 0;123 return errors != errors_expected; 123 124 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/tst-chmod.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 29 29 #include <unistd.h> 30 30 #include <sys/stat.h> 31 32 #ifndef HAVE_64BIT_FILEIO_TYPES 33 #define stat64 stat 34 #define fstat64 fstat 35 #endif 31 36 32 37 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/tst-dir.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 28 28 #include <unistd.h> 29 29 #include <sys/stat.h> 30 31 #ifndef HAVE_64BIT_FILEIO_TYPES 32 #define stat64 stat 33 #define fstat64 fstat 34 #define dirent64 dirent 35 #define readdir64_r readdir_r 36 #define readdir64 readdir 37 #endif 38 #ifdef __EMX__ 39 #warning fchdir still not implemented? 40 #define fchdir(fd) (-1) 41 #endif 30 42 31 43 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/tst-exec.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 142 142 { 143 143 if (argc != 4) 144 error (EXIT_FAILURE, 0, "wrong number of arguments (%d)", argc); 144 error (EXIT_FAILURE, 0, "wrong number of arguments (%d) argv[0]=%s argv[1]=%s argv[2]=%s argv[3]=%s argv[4]=%s argv[5]=%s argv[6]=%s argv[7]=%s argv[8]=%s", 145 argc, argc > 0 ? argv[0] : "<null>", argc > 1 ? argv[1] : "<null>", argc > 2 ? argv[2] : "<null>", argc > 3 ? argv[3] : "<null>", 146 argc > 4 ? argv[4] : "<null>", argc > 5 ? argv[5] : "<null>", argc > 6 ? argv[6] : "<null>", argc > 7 ? argv[7] : "<null>", 147 argc > 8 ? argv[8] : "<null>"); 145 148 146 149 return handle_restart (argv[1], argv[2], argv[3]); … … 148 151 149 152 if (argc != 5) 150 error (EXIT_FAILURE, 0, "wrong number of arguments (%d)", argc); 153 error (EXIT_FAILURE, 0, "wrong number of arguments (%d) argv[0]=%s argv[1]=%s argv[2]=%s argv[3]=%s argv[4]=%s", 154 argc, argc > 0 ? argv[0] : "<null>", argc > 1 ? argv[1] : "<null>", argc > 2 ? argv[2] : "<null>", 155 argc > 3 ? argv[3] : "<null>", argc > 4 ? argv[4] : "<null>"); 151 156 152 157 /* Prepare the test. We are creating two files: one which file descriptor -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/tst-execvp3.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 20 20 { 21 21 int fd = create_temp_file ("testscript", &fname); 22 #if 0 22 23 dprintf (fd, "echo foo\n"); 23 24 fchmod (fd, 0700); 24 25 close (fd); 26 #else 27 FILE *pf = fdopen (fd, "w+"); 28 fprintf (pf, "echo foo\n"); 29 fflush (pf); 30 fchmod (fd, 0700); 31 fclose (pf); 32 #endif 25 33 } 26 34 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/posix/tst-fnmatch.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 264 264 len = 8; 265 265 } 266 #ifdef FNM_EXTMATCH 266 267 else if (strncasecmp (str, "EXTMATCH", 8) == 0 267 268 && (str[8] == '|' || str[8] == '\0')) … … 270 271 len = 8; 271 272 } 273 #else 274 #warning "FNM_EXTMATCH isn't defined!" 275 #endif 272 276 else 273 277 return -1; … … 322 326 first = 0; 323 327 } 328 #ifdef FNM_EXTMATCH 324 329 if (flags & FNM_EXTMATCH) 325 330 { … … 329 334 first = 0; 330 335 } 336 #else 337 #warning "FNM_EXTMATCH isn't defined!" 338 #endif 331 339 if (cp == buf) 332 340 *cp++ = '0'; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.