Matus Kysel [Mon, 26 Apr 2021 09:41:09 +0000 (09:41 +0000)]
sem_close: fix missing include for O_* constants
Signed-off-by: Matus Kysel <mkysel@tachyum.com>
Szabolcs Nagy [Wed, 28 Oct 2020 20:59:35 +0000 (20:59 +0000)]
add sem_close regression test
Szabolcs Nagy [Mon, 7 Sep 2020 11:05:53 +0000 (11:05 +0000)]
memset test: fix padding size
Szabolcs Nagy [Mon, 7 Sep 2020 10:21:08 +0000 (10:21 +0000)]
memset test: fix to have more coverage
Szabolcs Nagy [Sat, 25 Jul 2020 00:37:21 +0000 (00:37 +0000)]
fix flockfile-list regression test
this test should check if freed stdio memory is clobbered
after an funlockfile.
the old method was very fragile: it tried to reuse the
freed memory via a malloc and check if that allocation is
clobbered. now musl supports malloc interposition so we
can use that to directly check the required property.
Szabolcs Nagy [Fri, 24 Jul 2020 14:37:31 +0000 (14:37 +0000)]
Makefile: prevent linking duplicate object files
previously the foo.OBJS list could not include foo.o because that's
already linked into foo.exe, but this is an easy mistake to make when
using foo.OBJS to link multiple objects into a test binary so ensure
that objects are not duplicated on the link command line.
Szabolcs Nagy [Tue, 7 Jul 2020 21:40:11 +0000 (21:40 +0000)]
math: add near half way tests for sqrt and ld80 sqrtl
based on "A Test for Correctly Rounded SQRT" by W. Kahan.
http://people.eecs.berkeley.edu/~wkahan/SQRTest.pdf
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.
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.
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.
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.
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.
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).
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.
Szabolcs Nagy [Sat, 1 Sep 2018 06:15:00 +0000 (06:15 +0000)]
non-nearest rounding ulp check
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.
Szabolcs Nagy [Tue, 16 Jul 2019 22:12:15 +0000 (22:12 +0000)]
add lseek test with large offsets
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.
Szabolcs Nagy [Thu, 14 Mar 2019 23:05:04 +0000 (23:05 +0000)]
add an sscanf regression 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>
Szabolcs Nagy [Wed, 29 Aug 2018 17:04:25 +0000 (17:04 +0000)]
fix tls_align_dlopen
skip further checks after a dlsym failure.
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.
Szabolcs Nagy [Sun, 15 Jul 2018 21:20:21 +0000 (21:20 +0000)]
add ungetc with setvbuf test
Szabolcs Nagy [Fri, 25 May 2018 20:02:47 +0000 (20:02 +0000)]
add local exec tls align test
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
Rich Felker [Wed, 7 Feb 2018 21:26:17 +0000 (21:26 +0000)]
add octal corner cases
Bobby Bingham [Fri, 10 Nov 2017 20:59:18 +0000 (14:59 -0600)]
pthread_atfork/fork regression test
Bobby Bingham [Fri, 10 Nov 2017 20:59:01 +0000 (14:59 -0600)]
test sigsetjmp with savesigs=0
Dennis Wölfing [Tue, 6 Feb 2018 19:54:00 +0000 (20:54 +0100)]
add test for strftime
Szabolcs Nagy [Wed, 10 Jan 2018 21:55:53 +0000 (21:55 +0000)]
fgetwc may clobber errno when the result is not WEOF
Szabolcs Nagy [Sun, 19 Nov 2017 19:09:52 +0000 (19:09 +0000)]
add fgetwc regression test
Szabolcs Nagy [Sun, 19 Nov 2017 19:09:20 +0000 (19:09 +0000)]
declare t_setutf8
Szabolcs Nagy [Thu, 22 Jun 2017 23:40:47 +0000 (23:40 +0000)]
t_setutf8 helper
Szabolcs Nagy [Thu, 22 Jun 2017 23:30:21 +0000 (23:30 +0000)]
multi-byte functions test
Szabolcs Nagy [Thu, 22 Jun 2017 23:28:25 +0000 (23:28 +0000)]
uselocale(0) regression test
Szabolcs Nagy [Thu, 22 Jun 2017 23:27:15 +0000 (23:27 +0000)]
iconv regression test
Szabolcs Nagy [Mon, 3 Apr 2017 00:21:10 +0000 (00:21 +0000)]
scalbn special cases
Szabolcs Nagy [Sun, 19 Mar 2017 16:52:20 +0000 (16:52 +0000)]
scalbn and fma special cases
Szabolcs Nagy [Mon, 9 Jan 2017 23:50:00 +0000 (23:50 +0000)]
add Julien Ramseier to authors
Szabolcs Nagy [Mon, 9 Jan 2017 22:02:27 +0000 (22:02 +0000)]
wcstol: implement 64-bit tests
Szabolcs Nagy [Sun, 27 Nov 2016 14:42:27 +0000 (14:42 +0000)]
avoid path search in runtest and make abs paths work
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.
Szabolcs Nagy [Fri, 1 Jul 2016 21:03:39 +0000 (21:03 +0000)]
ugly awk workaround for random newlines inserted by gcc -E
Bobby Bingham [Thu, 30 Jun 2016 18:33:35 +0000 (18:33 +0000)]
fix math/isless test
Szabolcs Nagy [Sun, 6 Mar 2016 21:14:24 +0000 (21:14 +0000)]
use _XOPEN_SOURCE
Alexander Monakov [Sun, 6 Mar 2016 19:41:14 +0000 (22:41 +0300)]
add putenv double-free regression test
Szabolcs Nagy [Wed, 24 Feb 2016 20:23:34 +0000 (20:23 +0000)]
fix fenv test (operator precedence)
Szabolcs Nagy [Wed, 3 Feb 2016 22:56:09 +0000 (22:56 +0000)]
string test alignment fix by Mahesh Bodapati
Szabolcs Nagy [Sun, 20 Dec 2015 15:14:23 +0000 (15:14 +0000)]
tsearch test fix
Szabolcs Nagy [Sat, 28 Nov 2015 18:31:34 +0000 (18:31 +0000)]
deps for tls_get_new test
Szabolcs Nagy [Wed, 25 Nov 2015 23:03:59 +0000 (23:03 +0000)]
add __tls_get_new regression test
Szabolcs Nagy [Thu, 18 Jun 2015 22:26:37 +0000 (22:26 +0000)]
run pthread_robust test for pshared and privat mutexes as well
Szabolcs Nagy [Thu, 18 Jun 2015 22:19:55 +0000 (22:19 +0000)]
run robust-detach test for pshared and non-pshared mutex
Szabolcs Nagy [Thu, 18 Jun 2015 21:52:25 +0000 (21:52 +0000)]
fix iconv_open test
Szabolcs Nagy [Thu, 18 Jun 2015 21:46:13 +0000 (21:46 +0000)]
add regex REG_ICASE test for austingroupbug #872
Szabolcs Nagy [Thu, 18 Jun 2015 21:44:44 +0000 (21:44 +0000)]
fix pthread-robust-detach test
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
Szabolcs Nagy [Mon, 13 Apr 2015 23:47:45 +0000 (23:47 +0000)]
regression test for robust mutext in detached thread
Szabolcs Nagy [Sat, 11 Apr 2015 00:34:01 +0000 (00:34 +0000)]
more pow(0,-inf) fixes
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
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
Szabolcs Nagy [Fri, 10 Apr 2015 18:55:40 +0000 (18:55 +0000)]
use fgetwc on wide oriented streams
Szabolcs Nagy [Fri, 10 Apr 2015 18:52:24 +0000 (18:52 +0000)]
fenv: under/overflow may raise inexact too
Szabolcs Nagy [Fri, 10 Apr 2015 18:47:01 +0000 (18:47 +0000)]
fix htons and sigsetjmp api tests
Szabolcs Nagy [Fri, 10 Apr 2015 18:45:16 +0000 (18:45 +0000)]
fix ulp check in sincosf
Szabolcs Nagy [Thu, 9 Apr 2015 20:29:44 +0000 (20:29 +0000)]
more consistent feature test macros in math tests
Szabolcs Nagy [Thu, 9 Apr 2015 00:39:21 +0000 (00:39 +0000)]
semtimed_wait cancel point
Szabolcs Nagy [Thu, 9 Apr 2015 00:35:55 +0000 (00:35 +0000)]
sigaltstck: add missing include
Szabolcs Nagy [Thu, 9 Apr 2015 00:31:26 +0000 (00:31 +0000)]
add _DEFAULT_SOURCE wherever _BSD_SOURCE was used
Szabolcs Nagy [Thu, 9 Apr 2015 00:23:25 +0000 (00:23 +0000)]
add missing unistd.h include
Szabolcs Nagy [Thu, 9 Apr 2015 00:22:42 +0000 (00:22 +0000)]
handle 0 return of crypt
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
Szabolcs Nagy [Sun, 22 Mar 2015 19:00:24 +0000 (19:00 +0000)]
fix BRE \0 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 ::
Szabolcs Nagy [Sun, 22 Mar 2015 01:54:22 +0000 (01:54 +0000)]
inet_pton 1:2:3:4:5:6:7:: regression
Szabolcs Nagy [Sun, 22 Mar 2015 00:24:15 +0000 (00:24 +0000)]
regex backref \0 regression test
Szabolcs Nagy [Sun, 22 Mar 2015 00:16:27 +0000 (00:16 +0000)]
add ere backref regression test
Szabolcs Nagy [Sat, 21 Mar 2015 23:51:34 +0000 (23:51 +0000)]
regex memory corruption regression test
Szabolcs Nagy [Thu, 12 Mar 2015 00:39:08 +0000 (00:39 +0000)]
setenv(0,...) is no longer valid in posix-2013
Szabolcs Nagy [Thu, 5 Mar 2015 23:45:48 +0000 (00:45 +0100)]
fix string_memset so buffers are aligned properly
Szabolcs Nagy [Thu, 5 Mar 2015 23:10:39 +0000 (00:10 +0100)]
fix string_memset code
Szabolcs Nagy [Thu, 5 Mar 2015 23:07:33 +0000 (00:07 +0100)]
clean string_memset code
Szabolcs Nagy [Wed, 4 Mar 2015 22:28:43 +0000 (23:28 +0100)]
fix swprintf("%#.0o")
Szabolcs Nagy [Sun, 1 Mar 2015 11:01:24 +0000 (12:01 +0100)]
regression test for __timedwait ECANCELED omission
Szabolcs Nagy [Sun, 1 Mar 2015 10:59:17 +0000 (11:59 +0100)]
regression tests for bugs in first versions of new passwd code
Szabolcs Nagy [Wed, 25 Feb 2015 22:30:10 +0000 (23:30 +0100)]
test memset with larger size range
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
Szabolcs Nagy [Tue, 6 Jan 2015 15:59:01 +0000 (16:59 +0100)]
fix snprintf "%#.0o" test
see musl commit
b91cdbe2bc8b626aa04dc6e3e84345accf34e4b1
Szabolcs Nagy [Mon, 15 Dec 2014 00:06:17 +0000 (01:06 +0100)]
add FNM_CASEFOLD tests
Szabolcs Nagy [Tue, 28 Oct 2014 21:46:03 +0000 (22:46 +0100)]
fix lrand48-signextend and regex-negated-range regression tests
Szabolcs Nagy [Tue, 28 Oct 2014 01:24:16 +0000 (02:24 +0100)]
testcases for rint double rounding issue
Szabolcs Nagy [Mon, 13 Oct 2014 08:41:14 +0000 (10:41 +0200)]
add strverscmp tests from the manual, bug found by jianzhong.huang
Szabolcs Nagy [Sun, 21 Sep 2014 16:28:09 +0000 (18:28 +0200)]
lrand48 regression test
Szabolcs Nagy [Fri, 19 Sep 2014 21:44:28 +0000 (23:44 +0200)]
flockfile list corruption test
Szabolcs Nagy [Sun, 14 Sep 2014 15:10:40 +0000 (17:10 +0200)]
add 64bit strtol/strtoul and strtoll/strtoull tests
Alexander Monakov [Thu, 11 Sep 2014 15:33:36 +0000 (17:33 +0200)]
fix shm subtest in cancellation points test
Szabolcs Nagy [Thu, 11 Sep 2014 09:27:52 +0000 (11:27 +0200)]
fix argument order in the error message of jnf, yn, ynf
Sergey Dmitrouk [Wed, 10 Sep 2014 11:33:42 +0000 (14:33 +0300)]
Fix order of jn() arguments in error message
They are swapped.
Szabolcs Nagy [Wed, 10 Sep 2014 16:59:27 +0000 (18:59 +0200)]
cat build errors during build
Szabolcs Nagy [Sun, 7 Sep 2014 13:58:51 +0000 (15:58 +0200)]
fix thread and shm cleanup in the cancellation point test