summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Avoid test failure on Haiku.Bruno Haible2008-11-161-1/+4
|
* Include config.h in all tests.Bruno Haible2008-11-153-1/+8
|
* Test also the existence of the SCHED_* macros.Bruno Haible2008-11-151-0/+3
|
* test-argp-2: avoid test failure when PACKAGE_BUGREPORT is definedJim Meyering2008-11-131-1/+3
| | | | | | | * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this test would fail due to the difference in the Report bugs to ... line. The expected address is empty, "<>", while the actual would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
* Don't rely on the contents of stderr of shell commands.Bruno Haible2008-11-113-30/+44
|
* More tests for 'select' module.Bruno Haible2008-11-084-0/+204
|
* Add files missing from last commit.Simon Josefsson2008-10-282-0/+130
|
* Set and use EXEEXT.Simon Josefsson2008-10-271-5/+5
|
* Include <stdio.h>, for perror.Bruno Haible2008-10-271-0/+2
|
* lstat: New module.Simon Josefsson2008-10-271-0/+35
|
* random_r: new moduleJim Meyering2008-10-231-0/+56
| | | | | | | | | | | | | | | | | | * modules/random_r: New file. * m4/random_r.m4: New file. * lib/random_r.c: New file, from glibc. * modules/random_r-tests: New file. * tests/test-random_r.c: New file. * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r): Declare. (RAND_MAX): Define. * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R. * modules/stdlib: Substitute them, too. * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it. * doc/glibc-functions/initstate_r.texi: Mention the new module. * doc/glibc-functions/random_r.texi: Likewise. * doc/glibc-functions/setstate_r.texi: Likewise. * doc/glibc-functions/srandom_r.texi: Likewise. * config/srclist.txt: Mention it.
* Add gethostname() declaration to <unistd.h>.Bruno Haible2008-10-211-1/+2
|
* Tests for posix_spawn function.Bruno Haible2008-10-211-0/+160
|
* Use gnulib's sys/wait.h replacement.Bruno Haible2008-10-212-38/+0
|
* Move getaddrinfo.h declarations to netdb.h.Simon Josefsson2008-10-201-1/+1
| | | | | | | | | | | | | * lib/getaddrinfo.h: Remove file. * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h. * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h. * lib/netdb.in.h: Add declarations from getaddrinfo.h. * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0. * modules/netdb: Substitute GNULIB_GETADDRINFO. * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h. * tests/test-getaddrinfo.c: Likewise. * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check. * NEWS: Mention change.
* Move the isnanf(), isnand(), isnanl() declarations to <math.h>.Bruno Haible2008-10-193-4/+4
|
* Avoid compilation error due to MacOS X 10.5 gcc cross-compilation bug.Bruno Haible2008-10-1813-13/+91
|
* Add netdb.h replacement module.Simon Josefsson2008-10-151-0/+29
| | | | Currently empty and unused, but that will change soon.
* Include <sys/ioctl.h>, for ioctl().Yoann Vandoorselaere2008-10-142-0/+2
|
* Correct use of uninitialized variable on AIX.Bruno Haible2008-10-131-0/+2
|
* Use a more portable replacement expression for -0.0L.Bruno Haible2008-10-0813-71/+86
|
* flock: new moduleRichard W.M. Jones2008-10-071-0/+104
| | | | | | | | | | | | | | * MODULES.html.sh: Add to list of modules. * lib/flock.c: flock implementation for Windows and Unix systems which have fcntl. * doc/glibc-functions/flock.texi: Update documentation. * lib/sys_file.in.h: <sys/file.h> header file. * m4/flock.m4: M4 macros. * m4/sys_file_h.m4: M4 macros for replacement sys/file.h. * modules/flock: flock module. * modules/flock-tests: flock tests module. * modules/sys_file: sys/file.h module. * tests/test-flock.c: test suite for flock.
* test-signbit: avoid tripping Irix cc bug on -0.0LEric Blake2008-10-061-4/+1
| | | | | | | | * tests/test-signbit.c (minus_zerol): Delete, and replace with '-zerol'. This may break on HP-UX/hppa, but at least makes the entire testsuite consistent and avoids an Irix 6.2 bug. Signed-off-by: Eric Blake <ebb9@byu.net>
* Split sys_select-tests module into select-tests and sys_select-tests.Bruno Haible2008-10-052-351/+377
|
* Tests for module 'getdtablesize'.Bruno Haible2008-10-051-0/+44
|
* filevercmp: new moduleKamil Dudka2008-10-031-0/+95
| | | | | | | | | * lib/filevercmp.h: New function filevercmp comparing version strings. * lib/filevercmp.c: Implementation of filevercmp function. * modules/filevercmp: Module metadata. * tests/test-filevercmp.c: Unit test for new module. * modules/filevercmp-tests: Unit test metadata. * MODULES.html.sh: Add filevercmp module.
* fsync: new moduleRichard W.M. Jones2008-10-021-0/+49
| | | | | | | | | | | | | | * lib/fsync.c: New file. * m4/fsync.m4: New file. * modules/fsync: New file. * modules/fsync-tests: New file. * tests/test-fsync.c: New file. * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both GNULIB_FSYNC and HAVE_FSYNC. * lib/unistd.in.h (@GNULIB_FSYNC@): Add a block for fsync. * MODULES.html.sh (posix_functions): Add fsync. * doc/posix-functions/fsync.texi: Update.
* remove trailing spacesJim Meyering2008-10-012-5/+5
| | | | | | | | | | | * NEWS: Likewise. * lib/poll.c (poll): Likewise. * lib/sys_socket.in.h (SHUT_RDWR): Likewise. * lib/winsock.c (rpl_close): Likewise. * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise. * modules/yield: Likewise. * tests/test-poll.c (connect_to_socket, poll1): Likewise. * tests/test-sys_select.c (connect_to_socket): Likewise.
* Tests for module 'cond'.Yoann Vandoorselaere2008-10-011-0/+207
|
* Make use of the modules 'thread', 'yield' in the 'tls' test.Bruno Haible2008-10-011-123/+3
|
* Make use of the modules 'thread', 'yield' in the 'lock' test.Bruno Haible2008-10-011-129/+25
|
* tests: avoid some compiler warningsSimon Josefsson2008-09-302-2/+3
| | | | | | | * tests/test-memchr.c (main): Pass NULL indirectly. * tests/test-getdate.c (main): Remove unused variable 'ret'. Signed-off-by: Simon Josefsson <simon@josefsson.org>
* getdate.y: disallow countable dayshifts like "4 yesterday ago"Ondřej Vašík2008-09-291-0/+48
| | | | | | | | | | | * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for exactly specified dayshifts. (dayshift): New rule. (rel): Add dayshift. (relative_time_table) [tomorrow, yesterday, today, now]: Use tDAY_SHIFT in place of tDAY_UNIT. * tests/test-getdate.c: Add tests for now-disallowed countable dayshifts, e.g., "4 yesterday ago".
* Remove trailing spaces.Bruno Haible2008-09-292-2/+2
|
* A new test for posix_spawn.Bruno Haible2008-09-294-1/+172
|
* strengthen self-containedness check for sys/select.hPaolo Bonzini2008-09-291-2/+5
| | | | | | | | | | | 2008-09-29 Paolo Bonzini <bonzini@gnu.org> Bruno Haible <bruno@clisp.org> * lib/sys_select.in.h: Include sys/time.h. * m4/sys_select.h.m4: Test that struct timeval is fully defined. * modules/sys_select: Depend on sys_time. * tests/test-sys_select.c: Test that sys/select.h defines struct timeval fully.
* OSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'.Bruno Haible2008-09-281-0/+1
|
* Avoid test failure on glibc with LinuxThreads.Bruno Haible2008-09-281-0/+12
|
* Tests for module 'posix_spawnp'.Bruno Haible2008-09-282-0/+175
|
* Tests for module 'sched'.Bruno Haible2008-09-281-0/+35
|
* Explain reason for skipping tests.Bruno Haible2008-09-262-2/+4
|
* Tests for module 'sigpipe'.Bruno Haible2008-09-262-0/+100
|
* implement full-blown select(2) for winsockPaolo Bonzini2008-09-241-2/+350
| | | | | | | | | | | | | | | | 2008-09-24 Paolo Bonzini <bonzini@gnu.org> * NEWS: Document increased portability that sys_select now provides. * lib/sys_select.in.h: Install select wrapper. * lib/sys_socket.in.h: Use more descriptive name when there is no select wrapper. * lib/winsock-select.c: New. * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used. Require gl_HEADER_SYS_SOCKET. * modules/sys_select: Depend on alloca, add lib/winsock-select.c. * modules/sys_select-tests: Copy dependencies from modules/poll-tests. * tests/test-sys_select.c: Add functional tests.
* Ensure that a filename ending in a slash cannot be used to access a ↵Bruno Haible2008-09-242-0/+2
| | | | non-directory.
* c-stack: avoid compiler optimizations when provoking overflowEric Blake2008-09-231-7/+15
| | | | | | | | | * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make recursion harder to optimize, to ensure a stack overflow occurs. * tests/test-c-stack.c (recurse): Likewise. Borrowed from libsigsegv. Signed-off-by: Eric Blake <ebb9@byu.net>
* add sockets wrappersPaolo Bonzini2008-09-231-1/+1
| | | | | | | | | | | | | | | 2008-09-23 Paolo Bonzini <bonzini@gnu.org> * lib/sys_socket.in.h: Do not implement rpl_setsockopt here, instead define prototypes for a full set of wrappers. Ensure that Cygwin does not use the compatibility code, which is only for MinGW. * lib/winsock.c: New. * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used. * modules/sys_socket: Add lib/winsock.c. * modules/poll-tests: Add errno and perror. * tests/test-poll.c: Use ioctl, not ioctlsocket.
* downgrade minimum needed Winsock version for test-poll.cPaolo Bonzini2008-09-231-1/+1
| | | | | | 2008-09-23 Paolo Bonzini <bonzini@gnu.org> * tests/test-poll.c: Downgrade minimum needed Winsock version.
* test-perror.sh (tmpfiles): Cleanup temporary files on success.Simon Josefsson2008-09-231-0/+1
|
* Tweak skip message.Bruno Haible2008-09-222-2/+2
|
* Allow 3-digit exponents in %e and %g results on 'long double'.Bruno Haible2008-09-214-84/+228
|