libc-test
4 years agosuppress the failures of the musl/pleval test
Szabolcs Nagy [Sun, 5 Jan 2020 16:01:10 +0000 (16:01 +0000)]
suppress the failures of the musl/pleval test

ideally it should be rewritten so the test does not depend on internals,
but generated .mo files, for now that static linked test works so keep it.

4 years agodon't write the test REPORT to stdout only a summary
Szabolcs Nagy [Sun, 5 Jan 2020 15:44:55 +0000 (15:44 +0000)]
don't write the test REPORT to stdout only a summary

src/REPORT has too much clutter now.

4 years agofix ipc tests which cast time_t to long for printing
Szabolcs Nagy [Wed, 1 Jan 2020 16:12:40 +0000 (16:12 +0000)]
fix ipc tests which cast time_t to long for printing

use long long so the correct time is printed with 64bit time_t on 32bit targets.

4 years agoadd utime (utimensat, futimens) functional tests
Rich Felker [Fri, 23 Aug 2019 00:58:00 +0000 (20:58 -0400)]
add utime (utimensat, futimens) functional tests

these tests check for the ability to set file timestamps using
UTIME_NOW, UTIME_OMIT, and explicit timespecs. they indirectly check
that fstat works as well, and include a check of the first Y2038
timestamp that overflows 32-bit time_t, reporting errors for a Y2038
EOL implementaton (if time_t is 32-bit) or a kernel, filesystem, or
library implementation that fails to set and read back timestamps past
the 32-bit limit despite having a time_t type that can represent such
a timestamp.

4 years agochange syscall-sign-extend test
Szabolcs Nagy [Thu, 31 Oct 2019 01:01:57 +0000 (01:01 +0000)]
change syscall-sign-extend test

don't use SYS_clock_gettime because raw syscall is not time64 safe,
use a SYS_read which likely works across various abis without issues.

4 years agoallow omitted inexact in nearest integer functions
Szabolcs Nagy [Sun, 25 Aug 2019 18:27:16 +0000 (18:27 +0000)]
allow omitted inexact in nearest integer functions

in ceil, floor, trunc, round, lround and llround omitting inexact
is not an error (in fact it will be required to be omitted in c2x,
but c11 allows both behaviours).

4 years agoskip known math failures
Szabolcs Nagy [Sat, 1 Sep 2018 12:33:44 +0000 (12:33 +0000)]
skip known math failures

mark known failures with X and let the test pass if the error is
acceptable and not expected to be fixed soon.

this way the excessive math failures are easier to grep out.

4 years agonon-nearest rounding ulp check
Szabolcs Nagy [Sat, 1 Sep 2018 06:15:00 +0000 (06:15 +0000)]
non-nearest rounding ulp check

4 years agotls_local_exec.c: add a dynamic relocation test case
Fangrui Song [Wed, 14 Aug 2019 03:12:00 +0000 (03:12 +0000)]
tls_local_exec.c: add a dynamic relocation test case

This can catch the bug fixed by musl commit
9d35fec9e1f391d56faee20b868ef4114bcc4d8a in a -fpie -pie build.

4 years agoadd lseek test with large offsets
Szabolcs Nagy [Tue, 16 Jul 2019 22:12:15 +0000 (22:12 +0000)]
add lseek test with large offsets

4 years agoadd PI mutex tests
Rich Felker [Tue, 9 Jul 2019 18:29:20 +0000 (14:29 -0400)]
add PI mutex tests

for robust mutex tests, the code was already setup to be run more than
once with different attributes (pshared); I've added PI the same way.

for the main mutex tests, it would take a major refactoring to test
and report errors well for both the normal and PI cases, so I just
duplicated the source file with PI hard-coded on. this could be
improved later if desired.

5 years agoadd an sscanf regression test
Szabolcs Nagy [Thu, 14 Mar 2019 23:05:04 +0000 (23:05 +0000)]
add an sscanf regression test

5 years agoadd strptime basic test
Rafał Miłecki [Thu, 15 Nov 2018 13:22:37 +0000 (14:22 +0100)]
add strptime basic test

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
5 years agofix tls_align_dlopen
Szabolcs Nagy [Wed, 29 Aug 2018 17:04:25 +0000 (17:04 +0000)]
fix tls_align_dlopen

skip further checks after a dlsym failure.

5 years agofix setjmp test
Szabolcs Nagy [Thu, 23 Aug 2018 09:04:27 +0000 (09:04 +0000)]
fix setjmp test

sigprocmask has restrict qualified args so they should not alias.

5 years agoadd ungetc with setvbuf test
Szabolcs Nagy [Sun, 15 Jul 2018 21:20:21 +0000 (21:20 +0000)]
add ungetc with setvbuf test

5 years agoadd local exec tls align test
Szabolcs Nagy [Fri, 25 May 2018 20:02:47 +0000 (20:02 +0000)]
add local exec tls align test

6 years agofmaf test case that's hard to round in nearest rounding mode
Szabolcs Nagy [Sun, 1 Apr 2018 20:36:00 +0000 (20:36 +0000)]
fmaf test case that's hard to round in nearest rounding mode

6 years agoadd octal corner cases
Rich Felker [Wed, 7 Feb 2018 21:26:17 +0000 (21:26 +0000)]
add octal corner cases

6 years agopthread_atfork/fork regression test
Bobby Bingham [Fri, 10 Nov 2017 20:59:18 +0000 (14:59 -0600)]
pthread_atfork/fork regression test

6 years agotest sigsetjmp with savesigs=0
Bobby Bingham [Fri, 10 Nov 2017 20:59:01 +0000 (14:59 -0600)]
test sigsetjmp with savesigs=0

6 years agoadd test for strftime
Dennis Wölfing [Tue, 6 Feb 2018 19:54:00 +0000 (20:54 +0100)]
add test for strftime

6 years agofgetwc may clobber errno when the result is not WEOF
Szabolcs Nagy [Wed, 10 Jan 2018 21:55:53 +0000 (21:55 +0000)]
fgetwc may clobber errno when the result is not WEOF

6 years agoadd fgetwc regression test
Szabolcs Nagy [Sun, 19 Nov 2017 19:09:52 +0000 (19:09 +0000)]
add fgetwc regression test

6 years agodeclare t_setutf8
Szabolcs Nagy [Sun, 19 Nov 2017 19:09:20 +0000 (19:09 +0000)]
declare t_setutf8

6 years agot_setutf8 helper
Szabolcs Nagy [Thu, 22 Jun 2017 23:40:47 +0000 (23:40 +0000)]
t_setutf8 helper

6 years agomulti-byte functions test
Szabolcs Nagy [Thu, 22 Jun 2017 23:30:21 +0000 (23:30 +0000)]
multi-byte functions test

6 years agouselocale(0) regression test
Szabolcs Nagy [Thu, 22 Jun 2017 23:28:25 +0000 (23:28 +0000)]
uselocale(0) regression test

6 years agoiconv regression test
Szabolcs Nagy [Thu, 22 Jun 2017 23:27:15 +0000 (23:27 +0000)]
iconv regression test

7 years agoscalbn special cases
Szabolcs Nagy [Mon, 3 Apr 2017 00:21:10 +0000 (00:21 +0000)]
scalbn special cases

7 years agoscalbn and fma special cases
Szabolcs Nagy [Sun, 19 Mar 2017 16:52:20 +0000 (16:52 +0000)]
scalbn and fma special cases

7 years agoadd Julien Ramseier to authors
Szabolcs Nagy [Mon, 9 Jan 2017 23:50:00 +0000 (23:50 +0000)]
add Julien Ramseier to authors

7 years agowcstol: implement 64-bit tests
Szabolcs Nagy [Mon, 9 Jan 2017 22:02:27 +0000 (22:02 +0000)]
wcstol: implement 64-bit tests

7 years agoavoid path search in runtest and make abs paths work
Szabolcs Nagy [Sun, 27 Nov 2016 14:42:27 +0000 (14:42 +0000)]
avoid path search in runtest and make abs paths work

7 years agouse anonymous maps in vmfill
Szabolcs Nagy [Sat, 17 Sep 2016 23:20:09 +0000 (23:20 +0000)]
use anonymous maps in vmfill

needed on s390 where /dev/zero maps cannot fill all memory.

7 years agougly awk workaround for random newlines inserted by gcc -E
Szabolcs Nagy [Fri, 1 Jul 2016 21:03:39 +0000 (21:03 +0000)]
ugly awk workaround for random newlines inserted by gcc -E

7 years agofix math/isless test
Bobby Bingham [Thu, 30 Jun 2016 18:33:35 +0000 (18:33 +0000)]
fix math/isless test

8 years agouse _XOPEN_SOURCE
Szabolcs Nagy [Sun, 6 Mar 2016 21:14:24 +0000 (21:14 +0000)]
use _XOPEN_SOURCE

8 years agoadd putenv double-free regression test
Alexander Monakov [Sun, 6 Mar 2016 19:41:14 +0000 (22:41 +0300)]
add putenv double-free regression test

8 years agofix fenv test (operator precedence)
Szabolcs Nagy [Wed, 24 Feb 2016 20:23:34 +0000 (20:23 +0000)]
fix fenv test (operator precedence)

8 years agostring test alignment fix by Mahesh Bodapati
Szabolcs Nagy [Wed, 3 Feb 2016 22:56:09 +0000 (22:56 +0000)]
string test alignment fix by Mahesh Bodapati

8 years agotsearch test fix
Szabolcs Nagy [Sun, 20 Dec 2015 15:14:23 +0000 (15:14 +0000)]
tsearch test fix

8 years agodeps for tls_get_new test
Szabolcs Nagy [Sat, 28 Nov 2015 18:31:34 +0000 (18:31 +0000)]
deps for tls_get_new test

8 years agoadd __tls_get_new regression test
Szabolcs Nagy [Wed, 25 Nov 2015 23:03:59 +0000 (23:03 +0000)]
add __tls_get_new regression test

8 years agorun pthread_robust test for pshared and privat mutexes as well
Szabolcs Nagy [Thu, 18 Jun 2015 22:26:37 +0000 (22:26 +0000)]
run pthread_robust test for pshared and privat mutexes as well

8 years agorun robust-detach test for pshared and non-pshared mutex
Szabolcs Nagy [Thu, 18 Jun 2015 22:19:55 +0000 (22:19 +0000)]
run robust-detach test for pshared and non-pshared mutex

8 years agofix iconv_open test
Szabolcs Nagy [Thu, 18 Jun 2015 21:52:25 +0000 (21:52 +0000)]
fix iconv_open test

8 years agoadd regex REG_ICASE test for austingroupbug #872
Szabolcs Nagy [Thu, 18 Jun 2015 21:46:13 +0000 (21:46 +0000)]
add regex REG_ICASE test for austingroupbug #872

8 years agofix pthread-robust-detach test
Szabolcs Nagy [Thu, 18 Jun 2015 21:44:44 +0000 (21:44 +0000)]
fix pthread-robust-detach test

8 years agosetlocale C.UTF-8 in regex test that depends on UTF-8
Szabolcs Nagy [Sat, 13 Jun 2015 20:50:53 +0000 (20:50 +0000)]
setlocale C.UTF-8 in regex test that depends on UTF-8

9 years agoregression test for robust mutext in detached thread
Szabolcs Nagy [Mon, 13 Apr 2015 23:47:45 +0000 (23:47 +0000)]
regression test for robust mutext in detached thread

9 years agomore pow(0,-inf) fixes
Szabolcs Nagy [Sat, 11 Apr 2015 00:34:01 +0000 (00:34 +0000)]
more pow(0,-inf) fixes

9 years agofix pow(+-0, inf) case http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1515.pdf
Szabolcs Nagy [Fri, 10 Apr 2015 23:55:53 +0000 (23:55 +0000)]
fix pow(+-0, inf) case open-std.org/jtc1/sc22/wg14/www/docs/n1515.pdf

9 years agoglibc wants -lpthread at the end
Szabolcs Nagy [Fri, 10 Apr 2015 21:17:06 +0000 (21:17 +0000)]
glibc wants -lpthread at the end

glibc -lpthread also needs -Wl,--whole-archive but that's a glibc bug

9 years agouse fgetwc on wide oriented streams
Szabolcs Nagy [Fri, 10 Apr 2015 18:55:40 +0000 (18:55 +0000)]
use fgetwc on wide oriented streams

9 years agofenv: under/overflow may raise inexact too
Szabolcs Nagy [Fri, 10 Apr 2015 18:52:24 +0000 (18:52 +0000)]
fenv: under/overflow may raise inexact too

9 years agofix htons and sigsetjmp api tests
Szabolcs Nagy [Fri, 10 Apr 2015 18:47:01 +0000 (18:47 +0000)]
fix htons and sigsetjmp api tests

9 years agofix ulp check in sincosf
Szabolcs Nagy [Fri, 10 Apr 2015 18:45:16 +0000 (18:45 +0000)]
fix ulp check in sincosf

9 years agomore consistent feature test macros in math tests
Szabolcs Nagy [Thu, 9 Apr 2015 20:29:44 +0000 (20:29 +0000)]
more consistent feature test macros in math tests

9 years agosemtimed_wait cancel point
Szabolcs Nagy [Thu, 9 Apr 2015 00:39:21 +0000 (00:39 +0000)]
semtimed_wait cancel point

9 years agosigaltstck: add missing include
Szabolcs Nagy [Thu, 9 Apr 2015 00:35:55 +0000 (00:35 +0000)]
sigaltstck: add missing include

9 years agoadd _DEFAULT_SOURCE wherever _BSD_SOURCE was used
Szabolcs Nagy [Thu, 9 Apr 2015 00:31:26 +0000 (00:31 +0000)]
add _DEFAULT_SOURCE wherever _BSD_SOURCE was used

9 years agoadd missing unistd.h include
Szabolcs Nagy [Thu, 9 Apr 2015 00:23:25 +0000 (00:23 +0000)]
add missing unistd.h include

9 years agohandle 0 return of crypt
Szabolcs Nagy [Thu, 9 Apr 2015 00:22:42 +0000 (00:22 +0000)]
handle 0 return of crypt

9 years agoconformance fixes
Szabolcs Nagy [Wed, 8 Apr 2015 23:49:33 +0000 (23:49 +0000)]
conformance fixes

- size of integer expressions are checked
- htonl etc macros may not be constant expressions
- ctermid is not mandatory api in unistd.h
- *setjmp may be macro only
- MB_CUR_MAX may not be a constant expression

9 years agofix BRE \0 test case
Szabolcs Nagy [Sun, 22 Mar 2015 19:00:24 +0000 (19:00 +0000)]
fix BRE \0 test case

9 years agoinet_pton tests, fix regression test case
Szabolcs Nagy [Sun, 22 Mar 2015 04:51:14 +0000 (04:51 +0000)]
inet_pton tests, fix regression test case

standard could be clearer about leading and trailing ::

9 years agoinet_pton 1:2:3:4:5:6:7:: regression
Szabolcs Nagy [Sun, 22 Mar 2015 01:54:22 +0000 (01:54 +0000)]
inet_pton 1:2:3:4:5:6:7:: regression

9 years agoregex backref \0 regression test
Szabolcs Nagy [Sun, 22 Mar 2015 00:24:15 +0000 (00:24 +0000)]
regex backref \0 regression test

9 years agoadd ere backref regression test
Szabolcs Nagy [Sun, 22 Mar 2015 00:16:27 +0000 (00:16 +0000)]
add ere backref regression test

9 years agoregex memory corruption regression test
Szabolcs Nagy [Sat, 21 Mar 2015 23:51:34 +0000 (23:51 +0000)]
regex memory corruption regression test

9 years agosetenv(0,...) is no longer valid in posix-2013
Szabolcs Nagy [Thu, 12 Mar 2015 00:39:08 +0000 (00:39 +0000)]
setenv(0,...) is no longer valid in posix-2013

9 years agofix string_memset so buffers are aligned properly
Szabolcs Nagy [Thu, 5 Mar 2015 23:45:48 +0000 (00:45 +0100)]
fix string_memset so buffers are aligned properly

9 years agofix string_memset code
Szabolcs Nagy [Thu, 5 Mar 2015 23:10:39 +0000 (00:10 +0100)]
fix string_memset code

9 years agoclean string_memset code
Szabolcs Nagy [Thu, 5 Mar 2015 23:07:33 +0000 (00:07 +0100)]
clean string_memset code

9 years agofix swprintf("%#.0o")
Szabolcs Nagy [Wed, 4 Mar 2015 22:28:43 +0000 (23:28 +0100)]
fix swprintf("%#.0o")

9 years agoregression test for __timedwait ECANCELED omission
Szabolcs Nagy [Sun, 1 Mar 2015 11:01:24 +0000 (12:01 +0100)]
regression test for __timedwait ECANCELED omission

9 years agoregression tests for bugs in first versions of new passwd code
Szabolcs Nagy [Sun, 1 Mar 2015 10:59:17 +0000 (11:59 +0100)]
regression tests for bugs in first versions of new passwd code

9 years agotest memset with larger size range
Szabolcs Nagy [Wed, 25 Feb 2015 22:30:10 +0000 (23:30 +0100)]
test memset with larger size range

9 years agofix float.h api test: FLT_ROUNDS is not int const expr
Szabolcs Nagy [Tue, 6 Jan 2015 16:00:02 +0000 (17:00 +0100)]
fix float.h api test: FLT_ROUNDS is not int const expr

9 years agofix snprintf "%#.0o" test
Szabolcs Nagy [Tue, 6 Jan 2015 15:59:01 +0000 (16:59 +0100)]
fix snprintf "%#.0o" test

see musl commit b91cdbe2bc8b626aa04dc6e3e84345accf34e4b1

9 years agoadd FNM_CASEFOLD tests
Szabolcs Nagy [Mon, 15 Dec 2014 00:06:17 +0000 (01:06 +0100)]
add FNM_CASEFOLD tests

9 years agofix lrand48-signextend and regex-negated-range regression tests
Szabolcs Nagy [Tue, 28 Oct 2014 21:46:03 +0000 (22:46 +0100)]
fix lrand48-signextend and regex-negated-range regression tests

9 years agotestcases for rint double rounding issue
Szabolcs Nagy [Tue, 28 Oct 2014 01:24:16 +0000 (02:24 +0100)]
testcases for rint double rounding issue

9 years agoadd strverscmp tests from the manual, bug found by jianzhong.huang
Szabolcs Nagy [Mon, 13 Oct 2014 08:41:14 +0000 (10:41 +0200)]
add strverscmp tests from the manual, bug found by jianzhong.huang

9 years agolrand48 regression test
Szabolcs Nagy [Sun, 21 Sep 2014 16:28:09 +0000 (18:28 +0200)]
lrand48 regression test

9 years agoflockfile list corruption test
Szabolcs Nagy [Fri, 19 Sep 2014 21:44:28 +0000 (23:44 +0200)]
flockfile list corruption test

9 years agoadd 64bit strtol/strtoul and strtoll/strtoull tests
Szabolcs Nagy [Sun, 14 Sep 2014 15:10:40 +0000 (17:10 +0200)]
add 64bit strtol/strtoul and strtoll/strtoull tests

9 years agofix shm subtest in cancellation points test
Alexander Monakov [Thu, 11 Sep 2014 15:33:36 +0000 (17:33 +0200)]
fix shm subtest in cancellation points test

9 years agofix argument order in the error message of jnf, yn, ynf
Szabolcs Nagy [Thu, 11 Sep 2014 09:27:52 +0000 (11:27 +0200)]
fix argument order in the error message of jnf, yn, ynf

9 years agoFix order of jn() arguments in error message
Sergey Dmitrouk [Wed, 10 Sep 2014 11:33:42 +0000 (14:33 +0300)]
Fix order of jn() arguments in error message

They are swapped.

9 years agocat build errors during build
Szabolcs Nagy [Wed, 10 Sep 2014 16:59:27 +0000 (18:59 +0200)]
cat build errors during build

9 years agofix thread and shm cleanup in the cancellation point test
Szabolcs Nagy [Sun, 7 Sep 2014 13:58:51 +0000 (15:58 +0200)]
fix thread and shm cleanup in the cancellation point test

9 years agocancellation point test by Alexander Monakov
Szabolcs Nagy [Sun, 7 Sep 2014 13:40:45 +0000 (15:40 +0200)]
cancellation point test by Alexander Monakov

9 years agoseparate dn_expand regression tests for empty name and pointer to 0
Szabolcs Nagy [Thu, 4 Sep 2014 18:51:24 +0000 (20:51 +0200)]
separate dn_expand regression tests for empty name and pointer to 0

9 years agotest empty domain name with offset pointer in dn_expand-empty
Szabolcs Nagy [Thu, 4 Sep 2014 10:03:08 +0000 (12:03 +0200)]
test empty domain name with offset pointer in dn_expand-empty

9 years agoadd recent contributors
Szabolcs Nagy [Wed, 3 Sep 2014 21:32:23 +0000 (23:32 +0200)]
add recent contributors

9 years agosem_wait cancellation regression test by Alexander Monakov
Szabolcs Nagy [Wed, 3 Sep 2014 21:29:00 +0000 (23:29 +0200)]
sem_wait cancellation regression test by Alexander Monakov

9 years agofix memfill to have malloc
Szabolcs Nagy [Tue, 2 Sep 2014 19:05:14 +0000 (21:05 +0200)]
fix memfill to have malloc

9 years agoadd fgets-eof regression test
Szabolcs Nagy [Wed, 27 Aug 2014 12:59:18 +0000 (14:59 +0200)]
add fgets-eof regression test