libc-test
5 weeks agoallow omitted inexact in nearest integer functions master
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).

5 weeks 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.

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

8 weeks 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.

3 months 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

3 months 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.

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

11 months 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>

13 months 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.

13 months 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.

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

16 months 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

18 months 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

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

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

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

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

21 months 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

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

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

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

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

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

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

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

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

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

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

2 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

3 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.

3 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

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

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

3 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

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

3 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

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

3 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

3 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

4 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

4 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

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

4 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

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

4 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

4 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

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

4 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

4 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

4 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

4 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

4 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

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

4 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

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

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

4 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

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

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

4 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

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

4 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 ::

4 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

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

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

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

4 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

4 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

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

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

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

4 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

4 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

4 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

4 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

4 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

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

4 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

4 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

5 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

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

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

5 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

5 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

5 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

5 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.

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

5 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

5 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

5 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

5 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

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

5 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

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

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

5 years agoclean up dn_expand-empty regression test
Szabolcs Nagy [Wed, 27 Aug 2014 12:46:42 +0000 (14:46 +0200)]
clean up dn_expand-empty regression test

5 years agofix memfill to use up libc reserved memory (glibc usually has some)
Szabolcs Nagy [Tue, 19 Aug 2014 17:58:05 +0000 (19:58 +0200)]
fix memfill to use up libc reserved memory (glibc usually has some)

5 years agofix regex-negated-range test to print better error message
Szabolcs Nagy [Tue, 19 Aug 2014 17:57:34 +0000 (19:57 +0200)]
fix regex-negated-range test to print better error message

5 years agofix timeout calc in pthread_cond-smasher
Szabolcs Nagy [Mon, 18 Aug 2014 06:33:23 +0000 (08:33 +0200)]
fix timeout calc in pthread_cond-smasher

5 years agoadd a regex regression test
Szabolcs Nagy [Wed, 13 Aug 2014 22:35:56 +0000 (00:35 +0200)]
add a regex regression test