about summary refs log tree commit diff
path: root/conform/conformtest.pl
Commit message (Collapse)AuthorAgeFilesLines
* Add stardard definition on conform processingAdhemerval Zanella2014-03-181-2/+1
| | | | | | | This patch adds the -std=c99 option when preprocessing the data files from the conform testcases. It fixes an issue where the compiler may split the 'macro bool' defition from stdbool.h-data in two lines and thus breaking the conform script.
* conformtest: clean up POSIX expectations for semaphore.h, signal.h, tar.h.Joseph Myers2014-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continuing the series of patches to clean up conformtest expectations for "POSIX" (1995/6) based on review of the expectations against the standard, this patch cleans up those for semaphore.h, signal.h and tar.h (including various corrections for other standards for the expectations affected by this patch). Tested x86_64. (Some of the failures for signal.h shown up by this patch correcting expectations for that header are among the reasons for posix/annexc being expected to fail. The goal is for conformtest eventually to replace posix/annexc and stdlib/isomac once it has all relevant functionality, and for the loop over standards and headers in conformtest to convert to separate makefile targets for each combination, so they can be run in parallel and so that xfails can be more specific than the present xfailing of the whole of conformtest.) * conform/conformtest.pl: Allow ' and \ in values given for constants. * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header inclusion. [POSIX] (sys/types.h): Likewise. [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header inclusion. [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header inclusion. * conform/data/signal.h-data (SIGIO): Remove expectation. [XPG3] (SIGBUS): Do not expect. [POSIX || XPG3] (SIGPOLL): Likewise. [POSIX || XPG3] (SIGPROF): Likewise. [POSIX || XPG3] (SIGSYS): Likewise. [XPG3] (SIGTRAP): Likewise. [POSIX || XPG3] (SIGURG): Likewise. [POSIX || XPG3] (SIGVTALRM): Likewise. [POSIX || XPG3] (SIGXCPU): Likewise. [POSIX || XPG3] (SIGXFSZ): Likewise. [POSIX] (SA_SIGINFO): Expect. [XPG3] (siginfo_t): Do not expect type or contents. [POSIX] (si_pid): Do not expect element. [POSIX] (si_uid): Likewise. [POSIX] (si_addr): Likewise. [POSIX] (si_status): Likewise. [POSIX] (si_band): Likewise. [XPG4] (si_value): Likewise. [POSIX || XPG3] (ILL_ILLOPC): Do not expect. [POSIX || XPG3] (ILL_ILLOPN): Likewise. [POSIX || XPG3] (ILL_ILLADR): Likewise. [POSIX || XPG3] (ILL_ILLTRP): Likewise. [POSIX || XPG3] (ILL_PRVOPC): Likewise. [POSIX || XPG3] (ILL_PRVREG): Likewise. [POSIX || XPG3] (ILL_COPROC): Likewise. [POSIX || XPG3] (ILL_BADSTK): Likewise. [POSIX || XPG3] (FPE_INTDIV): Likewise. [POSIX || XPG3] (FPE_INTOVF): Likewise. [POSIX || XPG3] (FPE_FLTDIV): Likewise. [POSIX || XPG3] (FPE_FLTOVF): Likewise. [POSIX || XPG3] (FPE_FLTUND): Likewise. [POSIX || XPG3] (FPE_FLTRES): Likewise. [POSIX || XPG3] (FPE_FLTINV): Likewise. [POSIX || XPG3] (FPE_FLTSUB): Likewise. [POSIX || XPG3] (SEGV_MAPERR): Likewise. [POSIX || XPG3] (SEGV_ACCERR): Likewise. [POSIX || XPG3] (BUS_ADRALN): Likewise. [POSIX || XPG3] (BUS_ADRERR): Likewise. [POSIX || XPG3] (BUS_OBJERR): Likewise. [POSIX || XPG3] (CLD_EXITED): Likewise. [POSIX || XPG3] (CLD_KILLED): Likewise. [POSIX || XPG3] (CLD_DUMPED): Likewise. [POSIX || XPG3] (CLD_TRAPPED): Likewise. [POSIX || XPG3] (CLD_STOPPED): Likewise. [POSIX || XPG3] (CLD_CONTINUED): Likewise. [POSIX || XPG3] (POLL_IN): Likewise. [POSIX || XPG3] (POLL_OUT): Likewise. [POSIX || XPG3] (POLL_MSG): Likewise. [POSIX || XPG3] (POLL_ERR): Likewise. [POSIX || XPG3] (POLL_PRI): Likewise. [POSIX || XPG3] (POLL_HUP): Likewise. [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise. [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise. (SIG*): Do not allow. [XPG3] (si_*): Likewise. [XPG3] (SI_*): Likewise. [XPG3 || XPG4] (sigev_*): Likewise. [XPG3 || XPG4] (SIGEV_*): Likewise. [XPG3 || XPG4] (sival_*): Likewise. [POSIX || XPG3 || XPG4] (uc_*): Likewise. [POSIX || XPG3] (BUS_*): Likewise. [POSIX || XPG3] (CLD_*): Likewise. [POSIX || XPG3] (FPE_*): Likewise. [POSIX || XPG3] (ILL_*): Likewise. [POSIX || XPG3] (POLL_*): Likewise. [POSIX || XPG3] (SEGV_*): Likewise. [POSIX || XPG3 || POSIX2008] (SS_*): Likewise. [POSIX || XPG3 || POSIX2008] (SV_*): Likewise. [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise. [POSIX || XPG3 || POSIX2008] (ss_*): Likewise. [POSIX || XPG3 || POSIX2008] (sv_*): Likewise. * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant. Specify type and value. (TVERSLEN): Likewise. (REGTYPE): Likewise. (AREGTYPE): Likewise. (LNKTYPE): Likewise. (SYMTYPE): Likewise. (CHRTYPE): Likewise. (BLKTYPE): Likewise. (DIRTYPE): Likewise. (FIFOTYPE): Likewise. (CONTTYPE): Likewise. (TSUID): Likewise. (TSGID): Likewise. (TSVTX): Likewise. (TUREAD): Likewise. (TUWRITE): Likewise. (TUEXEC): Likewise. (TGREAD): Likewise. (TGWRITE): Likewise. (TGEXEC): Likewise. (TOREAD): Likewise. (TOWRITE): Likewise. (TOEXEC): Likewise. [POSIX] (TSVTX): Expect constant.
* conformtest: Fix namespace testing.Joseph Myers2013-09-041-1/+3
|
* conformtest: Clean up / correct / expand C99 and C11 expectations.Joseph Myers2012-11-071-11/+11
|
* conformtest: Add test data for fenv.h.Joseph Myers2012-11-021-1/+1
|
* conformtest: Check namespace within __attribute__.Joseph Myers2012-05-011-2/+3
|
* conformtest: Use correct keyword set for underlying C standard.Joseph Myers2012-05-011-2/+5
|
* conformtest: Support testing macro usability in #if.Joseph Myers2012-05-011-2/+39
|
* conformtest: Support specifying types before promotion.Joseph Myers2012-05-011-1/+6
|
* conformtest: Unify "macro" and "constant" handling.Joseph Myers2012-05-011-64/+50
|
* conformtest: Unify "macro" cases.Joseph Myers2012-05-011-58/+3
|
* conformtest: Unify "constant" and "typed-constant".Joseph Myers2012-05-011-44/+15
|
* conformtest: Unify handling of "optional-" and non-optional lines.Joseph Myers2012-05-011-191/+44
|
* conformtest: Unify variants of "constant" and "optional-constant".Joseph Myers2012-05-011-63/+5
|
* conformtest: Always pass C standards options to compiler.Joseph Myers2012-05-011-16/+4
|
* conformtest: Use correct feature test macros for XPG4.Joseph Myers2012-05-011-1/+1
|
* conformtest: Handle "symbol" lines for allow-header.Joseph Myers2012-05-011-0/+2
|
* conformtest: Remove duplicate typed-constant handling.Joseph Myers2012-04-281-42/+0
|
* conformtest: Fix typo in handling typed-constant from allow-header.Joseph Myers2012-04-281-1/+1
|
* Don't tamper with $HOME.Thomas Schwinge2012-03-211-8/+3
|
* Add first fixes for conformtest for POSIX2008Ulrich Drepper2012-02-261-2/+2
|
* Fix up POSIX testing in conformtestUlrich Drepper2012-02-261-36/+32
|
* First steps to get conformtest fully workingUlrich Drepper2012-02-251-87/+133
|
* Fix up netdb.h for XPG7.Ulrich Drepper2010-01-121-0/+1
|
* Internal namespace test improvements.Ulrich Drepper2010-01-121-2/+2
|
* Fix standalone stdio.h inclusion.Ulrich Drepper2010-01-101-8/+11
|
* Add support for XPG7 testing.Ulrich Drepper2010-01-091-8/+30
| | | | | The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
* 2001-08-22 Roland McGrath <roland@frob.com>Roland McGrath2001-08-231-1/+2
| | | | * conform/conformtest.pl (checknamespace): Sort the output list.
* Update.Ulrich Drepper2001-08-191-0/+1
| | | | * conform/conformtest.pl: <inttypes.h> test required <stddef.h>.
* Update.Ulrich Drepper2001-08-181-15/+38
| | | | | | | | | | | 2001-08-18 Ulrich Drepper <drepper@redhat.com> * conform/conformtest.pl: Change namespace test to take #undef lines into account. * conform/data/netinet/in.h-data: Fix typo in allow-header line. * conform/data/sys/socket.h-data: Add sockatmark.
* Update.Ulrich Drepper2001-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | 2001-02-01 Ulrich Drepper <drepper@redhat.com> * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so). * configure.in: Test for -z initfirst linker option. * config.make.in: Add have-z-initfirst. * elf/dl-init.c (_dl_init): Split out actual initialization code in new function call_init. If _dl_initfirst is non-NULL initialize first. * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set remember object in _dl_initfirst. * elf/soinit.c: Remove special support for calling __pthread_initialize_minimal. * conform/conformtest.pl: Add missing $prepend in type test. * elf/elf.h (SHT_CHECKSUM): New definition. * posix/tst-fnmatch.input: Add tests for [. .] in locales.
* Update.Ulrich Drepper2001-01-281-6/+6
| | | | * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
* Update.Ulrich Drepper2001-01-281-3/+2
| | | | | | * conform/conformtest.pl: Undo last change. Define $mustprepend{"stdio.h"}. * libio/stdio.h: Define va_list correctly.
* Update.Ulrich Drepper2001-01-281-0/+1
| | | | | * conform/conformtest.pl: Define $mustprepend{"stdio.h"}. * libio/stdio.h: Always define __need___va_list.
* Update.Ulrich Drepper2001-01-281-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | * conform/data/time.h-data: CLK_TCK is not in XPG6. Fix tzname entry. * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6. * sysdeps/mach/hurd/i386/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise. * time/time.h: Likewise. * conform/conformtest.pl (@headers): Add complex.h and tgmath.h. * conform/data/complex.h-data: New file. * conform/data/tgmath.h-data: New file. * conform/data/wchar.h-data: Add missing functions. * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU. * conform/data/termios.h-data: Add missing const in tcsetattr() prototype. * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>. Don't define pid_t here. * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
* Update.Ulrich Drepper2001-01-271-0/+31
| | | | | * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant. * conform/conformtest.pl: Implement handling of symbol.
* Update.Ulrich Drepper2001-01-271-15/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-27 Ulrich Drepper <drepper@redhat.com> * signal/signal.h: Fix handling of __need_* symbols. * misc/sys/select.c: Define fd_set here. Remove __fd_set. Define fd_mask only if __USE_MISC. Declare pselect for __USE_XOPEN2K. * include/sys/select.h: Use fd_set not __fd_set. * sysdeps/generic/bits/select.h: Likewise. * sysdeps/i386/bits/select.h: Likewise. * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS, __FDELT, __FDMASK, and __fd_set here. * sysdeps/unix/sysv/aix/bits/types.h: Likewise. * sysdeps/unix/sysv/hpux/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise. * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise. * time/sys/time.h: Define struct timeval before including <time.h> and <sys/select.h>. * conform/data/sys/time.h-data: fd_set is a typedef. * conform/data/sys/select.h-data: New file. * conform/data/sys/mman.h-data: Make typed mem stuff optional. * conform/conformtest.pl (@headers): Add sys/select.h. (type, optional-type): Unless testing a typedef instantiate object. Implement optional-function. * math/test-misc.c: Include <float.h>.
* Update.Ulrich Drepper2001-01-271-0/+1
| | | | | | | | | | | | | * conform/conformtest.pl: Define $mustprepend{"signal.h"}. * conform/data/signal.h-data: Fix sigev_notify_function entry. Fix typo (SIGVALRM -> SIGVTALRM). * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr with real type. * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
* Update.Ulrich Drepper2001-01-271-1/+42
| | | | | | | | | | * conform/conformtest.pl: Implement optional-element. Define $mustprepend{"sched.h"}. * conform/data/sched.h-data: Make sporadic scheduler definitions optional. * pwd/pwd.h: Don't define getpwent_r for XPG.
* Update.Ulrich Drepper2001-01-271-0/+24
| | | | | | | | | | | | * conform/conformtest.pl: Implement optional-type. * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>. Include <rpc/netdb.h> only if __USE_MISC. Include <stdint.h> instead of defining uint32_t here. Define IPPORT_RESERVED. (struct hostent): Type of h_length element is int. (getnameinfo): Type of flags parameter is unsigned int. * inet/getnameinfo.c (getnameinfo): flags argument is unsigned. * conform/data/netdb.h-data: Add many missing definitions.
* Update.Ulrich Drepper2001-01-271-3/+53
| | | | | | | | | | | * conform/conformtest.pl: Implement optional-macro. * conform/data/math.h-data: Update for XPG6. * math/math.h (HUGE): Define as FLT_MAX value but don't use FLT_MAX. Don't include <float.h>. (MAXFLOAT): Likewise. * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
* Update.Ulrich Drepper2001-01-261-2/+2
| | | | * conform/conformtest.pl: Fix handling of macro-str.
* Update.Ulrich Drepper2001-01-261-2/+3
| | | | | | | | | 2001-01-26 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20. * conform/conformtest.pl (@headers): Add stdint.h. * conform/data/stdint.h-data: New file.
* Update.Ulrich Drepper2001-01-261-28/+41
| | | | | * conform/conformtest.pl: Recognize options --headers and --dialect. Add dialect-specific CFLAGS.
* Update.Ulrich Drepper2001-01-261-3/+9
| | | | | | | * conform/conformtest.pl: Implement handling of recursive allow-header. * conform/data/locale.h-data: Add new struct lconv members.
* Update.Ulrich Drepper2001-01-251-3/+4
| | | | | | | | | | | | | 2001-01-25 Ulrich Drepper <drepper@redhat.com> * conform/conformtest.pl: Handle allow-header in secondary headers correctly. * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with #ifdef. * conform/data/netinet/in.h-data: Use correct comment character. * conform/data/sys/stat.h-data: Likewise.
* Update.Ulrich Drepper2001-01-251-26/+91
| | | | | | * conform/conformtest.pl: Implement optional-constant. * conform/data/unistd.h-data: Use optional-constant wherever appropriate.
* Update.Ulrich Drepper2001-01-251-5/+3
| | | | | | * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS constants and add _SC_STREAMS. * sysdeps/posix/sysconf.c (__sysconf): Likewise.
* Update.Ulrich Drepper2001-01-251-38/+74
| | | | | | | | | | | | | | | | | | * conform/conformtest.pl: Run Unix tests for XPG6. Implement handling of known namespace violations. Improve printing of results. * posix/unistd.h (usleep): Correct return type. * sysdeps/unix/sysv/linux/usleep.c: Correct return type. * sysdeps/unix/bsd/usleep.c: Correct return type. * sysdeps/mach/usleep.c: Correct return type. * sysdeps/generic/usleep.c: Correct return type. * posix/unistd.h (sync): Correct return type. * sysdeps/generic/sync.c: Likewise. * sysdeps/mach/hurd/sync.c: Likewise. * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
* Update.Ulrich Drepper2001-01-251-7/+6
| | | | | | * conform/conformtest.pl: Handle allow-header correctly. * conform/data/time.h-data: Use correct comment form.