Changeset 2135
- Timestamp:
- Jul 1, 2005, 6:20:01 AM (20 years ago)
- Location:
- trunk/src/libctests/glibc
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r2134 r2135 32 32 EXPECTED := 33 33 _TARGET_OK := ok 34 CFLAGS += \ 35 -DHAVE_MCHECK_H \ 34 CFLAGS += -D__GLIBC__ \ 36 35 -DHAVE___STRTOD_INTERNAL \ 37 36 -DHAVE_ASPRINTF \ … … 54 53 posix/bug-ga1.c \ 55 54 posix/bug-ga2.c \ 55 posix/bug-regex1.c \ 56 posix/bug-regex10.c \ 57 posix/bug-regex13.c \ 58 posix/bug-regex14.c \ 59 posix/bug-regex16.c \ 60 posix/bug-regex17.c \ 61 posix/bug-regex19.c \ 62 posix/bug-regex20.c \ 63 posix/bug-regex22.c \ 64 posix/bug-regex4.c \ 65 posix/bug-regex7.c \ 66 posix/bug-regex8.c \ 67 posix/runtests.c \ 56 68 posix/test-vfork.c \ 69 posix/tst-boost.c \ 70 posix/tst-execl2.c \ 71 posix/tst-execle2.c \ 72 posix/tst-execlp2.c \ 73 posix/tst-execv2.c \ 74 posix/tst-execve2.c \ 75 posix/tst-execvp2.c \ 76 posix/tst-execvp3.c \ 77 posix/tst-getaddrinfo.c \ 78 posix/tst-getaddrinfo2.c \ 79 posix/tst-gnuglob.c \ 80 posix/tst-mmap.c \ 81 posix/tst-preadwrite64.c \ 82 posix/tst-rxspencer.c \ 83 posix/tst-truncate64.c \ 84 posix/tst-vfork1.c \ 85 posix/tst-vfork2.c \ 57 86 \ 58 87 pwd/tst-getpw.c \ … … 66 95 stdio-common/tst-printfsz.c \ 67 96 stdio-common/tst-swprintf.c \ 68 stdio-common/tstgetln.c \69 97 \ 70 98 stdlib/test-a64l.c \ … … 101 129 resolv/tst-aton.c \ 102 130 posix/bug-glob1.c \ 103 posix/bug-glob2.c 131 posix/bug-glob2.c \ 132 posix/bug-regex11.c \ 133 posix/bug-regex15.c \ 134 posix/bug-regex18.c \ 135 posix/bug-regex9.c \ 136 posix/testfnm.c \ 137 posix/tst-chmod.c \ 138 posix/tst-dir.c \ 139 posix/tst-fnmatch.c \ 140 posix/tst-pcre.c 104 141 105 142 # NOTES: … … 108 145 # stdio-common/tst-sscanf.c: Is doing some thousand separator and internationalization stuff which we don't implement. 109 146 # stdio-common/tstscanf.c: two cases of sscan working in three different ways depending on glibc, bsd or libc. cool! 110 111 CFLAGS += -Zomf -g \ 147 # posix/runtests.c: This really needs looking at on BSD. 148 # posix/testfnm.c: This looks bad! 149 # posix/tst-fnmatch.c: This too! 150 151 CFLAGS += -Zomf -g -I sysdeps/os2 \ 112 152 -DHAVE_STRNLEN \ 113 -DHAVE_MEMPCPY 153 -DHAVE_MEMPCPY \ 154 -DHAVE_ASPRINTF \ 155 -DHAVE_GETLINE \ 156 -DHAVE_STRCHRNUL \ 157 -DHAVE_RAWMEMCHR \ 158 -DHAVE_MEMRCHR 114 159 LDFLAGS += -Zstack 512 115 160 _TARGET_OK := ok 161 162 posix/runptests.c_ARGS = 15 # expect 15 errors 116 163 endif 117 164 … … 448 495 449 496 posix/tstgetopt.c_ARGS = -a -b -cfoobar --required foobar --optional=bazbug --none random --col --color --colour 450 posix/tst-exec.c_ARGS = -- $(OUTDIR)/posix/tst-exec.exe451 posix/tst-spawn.c_ARGS = -- $(OUTDIR)/posix/tst-spawn.exe452 posix/tst-dir.c_ARGS = `pwd` ` cd $(OUTDIR)/$(posix); pwd` `cd $(OUTDIR)/; pwd`$(OUTDIR)/tst-dir.exe453 posix/tst-chmod.c_ARGS = ` cd posix/; pwd`497 posix/tst-exec.c_ARGS = -- ./tst-exec.exe --direct --direct --direct 498 posix/tst-spawn.c_ARGS = -- ./tst-spawn.exe --direct --direct --direct 499 posix/tst-dir.c_ARGS = `pwd` `pwd`/$(OUTDIR)/posix `pwd`/$(OUTDIR) `pwd`/$(OUTDIR)/tst-dir.exe 500 posix/tst-chmod.c_ARGS = `pwd`/posix 454 501 posix/tst-rxspencer.c_ARGS = --utf8 posix/rxspencer/tests 455 posix/tst-pcre.c_ARGS = posix/PCRE.tests456 posix/tst-boost.c_ARGS = posix/BOOST.tests502 posix/tst-pcre.c_ARGS = $(CURDIR)/posix/PCRE.tests 503 posix/tst-boost.c_ARGS = $(CURDIR)/posix/BOOST.tests 457 504 posix/bug-glob1.c_ARGS = "." 458 505 posix/tst-execvp3.c_ARGS = --test-dir="." -
Property cvs2svn:cvs-rev
changed from
-
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
-
trunk/src/libctests/glibc/resolv/tst-leaks.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r2134 r2135 21 21 #include <arpa/nameser.h> 22 22 #include <resolv.h> 23 #ifdef HAVE_MCHECK_H24 23 #include <mcheck.h> 25 #endif26 24 27 25 /* Prototype for our test function. */ … … 37 35 unsigned char buf[256]; 38 36 39 #ifdef HAVE_MCHECK_H40 37 mtrace(); 41 #endif42 38 43 39 /* This will allocate some memory, which should be automatically -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/resolv/tst-leaks2.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r2134 r2135 20 20 #undef gethostbyname 21 21 22 #ifdef HAVE_MCHECK_H23 22 #include <mcheck.h> 24 #endif25 23 #include <netdb.h> 26 24 #include <resolv.h> … … 29 27 do_test (void) 30 28 { 31 #ifdef HAVE_MCHECK_H32 29 mtrace (); 33 #endif34 30 for (int i = 0; i < 20; ++i) 35 31 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/stdio-common/test-vfprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r2134 r2135 20 20 21 21 #include <locale.h> 22 #ifdef HAVE_MCHECK_H23 22 #include <mcheck.h> 24 #endif25 23 #include <stdint.h> 26 24 #include <stdio.h> … … 48 46 int fd; 49 47 50 #ifdef HAVE_MCHECK_H51 48 mtrace (); 52 #endif53 49 54 50 strcpy (buf, "/tmp/test-vfprintfXXXXXX"); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/libctests/glibc/stdio-common/tstgetln.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2134 r2135 19 19 20 20 #include <stdio.h> 21 #ifdef __GLIBC__ 21 22 #undef ssize_t 22 23 #define ssize_t _IO_ssize_t 24 #endif 23 25 24 26 int -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.