yamt
d1d388317b
include string.h for memset
2014-05-06 00:41:26 +00:00
martin
fb80a335f8
Comment out the ieee fp flags for alpha for now - something (tm) is not
...
working right, see PR port-alpha/48782.
2014-05-05 18:08:32 +00:00
joerg
9695f56051
Check for mounted /proc.
2014-05-01 03:46:11 +00:00
uebayasi
413d532bcc
Minimal execve(2) ATF test.
2014-04-29 06:29:02 +00:00
martin
511cd1dbe5
Tune COPTS for alpha
2014-04-28 08:46:35 +00:00
martin
e3f3b44e5b
When unlinking a directory as unprivileged user allow both EPERM and EACCESS
...
failures.
2014-04-21 18:05:17 +00:00
martin
e3e7e2d06e
When a hard link to a directory fails, accept both EPERM and EACCESS as
...
valid error codes.
2014-04-21 14:39:36 +00:00
joerg
728ced6ed6
Bail out if backtrace(3) failed.
2014-04-13 20:58:26 +00:00
christos
af447fd425
fix lossage with gcc-4.5
2014-04-07 15:09:20 +00:00
christos
658a209ca6
add stp*cpy() tests
2014-04-06 19:28:59 +00:00
gson
de089ddb26
Use daemon(3) instead of the experimental daemon2_fork() and
...
daemon2_detach(). Now that newer versions of daemon2_fork() and
daemon2_detach() are used in nfsd, where two-stage daemonization is
actually needed, there is no longer any reason for h_dns_server to
serve as a test case and example of their use.
2014-03-29 16:10:54 +00:00
joerg
76e79da680
Consistently use long double.
2014-03-25 17:30:14 +00:00
riastradh
6cb10275d0
Merge riastradh-drm2 to HEAD.
2014-03-18 18:20:35 +00:00
martin
d9c366827a
Handle VAX
2014-03-17 11:08:11 +00:00
dsl
2f2f29868b
Add a lot more tests for exp2() and exp2f().
...
exp2f(7.7) and exp2f(8.8) seem too far from their expected values
(especially the latter).
exp2(-1023) and below are badly broken.
2014-03-16 22:51:19 +00:00
dsl
73c89cbfd4
Print the result as a 'long double' - on i386 a return value that
...
should be infinity might just be too large for 'double' and won't
get converted until it has to be saved to memory.
2014-03-16 22:49:27 +00:00
dsl
18f26c5968
Check that the result isn't equaly to the expected value before checking
...
the absolute size of the error term.
If the expected result is +/-infinity it should compare equal, but the
result of the subtract may not be zero.
Also print the result and error values in fp hex to make it easier to
see how may lsb bits are incorrect.
2014-03-16 18:42:21 +00:00
cherry
4f1dbdfcdc
Fix comment: ar.bsp is the RSE backing store base pointer, not ar.bspstore
2014-03-16 09:27:04 +00:00
cherry
ee65d46ce6
Add stack align test stub for ia64 native csu
2014-03-16 09:20:05 +00:00
martin
49f7ef9bba
Avoid double constants out of range
2014-03-12 21:40:07 +00:00
joerg
7af46b7fdc
Use a struct for pair of frame name and whether it is optional. Add some
...
additional entries found in a -O0 build of ATF on PowerPC.
2014-03-11 13:43:23 +00:00
martin
d97ddb2687
no NaN tests for vax
2014-03-08 17:05:47 +00:00
martin
1ecc2818f1
Vax does not do +/- INF.
2014-03-07 12:46:47 +00:00
dsl
a701b24dee
A couple of the atan tests are randomly failing.
...
Print the incorrect value.
2014-03-05 20:15:41 +00:00
dsl
208d774fb4
Fix some typos.
...
Make the infinity and nan constants 'double' not 'long double'.
2014-03-05 20:14:46 +00:00
dsl
ee6c509ded
Move the #defines that simplified the test definitions and checks
...
into a separate header than can be used by the other libm tests.
Make the subtest index 'unsigned int' so that simple constants (eg 0)
print correctly.
2014-03-05 19:43:46 +00:00
dsl
7a0105bd14
Remove the print of the rounding mode.
...
It was added in case it was non-zero - which it isn't.
It still isn't clear why acos(-1) gives the wrong result on some amd64
systems.
2014-03-03 18:21:33 +00:00
martin
a753a01cb4
Define HAVE_FENV_H on architectures that support it.
...
What a mess, we need a central place for this!
2014-03-03 12:15:27 +00:00
martin
29ebc6818e
Remove all cargo-cult #ifndef __vax__ from the tests, that just paper
...
over bugs in the vax libm.
2014-03-03 10:39:08 +00:00
martin
5e5099dfc8
Fix build for platforms w/o fenv.h.
...
Remove some bogus #ifdef __vax__ (and add a few, hopefully non-bogus,
new ones).
2014-03-03 10:38:36 +00:00
dsl
5b5595b6b5
Include the subtest number in any error output.
...
Also temporarily print the rounding mode.
I think that acos(-1) is ending up with the wrong sign because the test
is being run with 'round towards -ve infinity' set.
I think it getting set somewhere and causing this test to fail.
The acos() code probably needs fixing - it shouldn't depend on the
round mode like this. But first I want to know if this if the error.
2014-03-02 22:40:45 +00:00
joerg
4d065f3e71
Fix sign.
2014-03-01 22:38:13 +00:00
dsl
8f9d8363a0
Some of the acos() tests seem to fail on some systems.
...
Sorting out why isn't helped by the tests not reporting the erronous value.
Change the 'boilerplate' pattern used so that all the values are output.
Reduce the amount of faffy red tape as well.
Some of these reductions could be shared with other libm tests, but for
the moment they are defined in this file.
All these tests pass on my amd64 system, and when I run amd64 qemu.
2014-03-01 21:08:39 +00:00
joerg
191a32cdd1
Avoid promotion in subexpressions.
2014-02-27 17:26:02 +00:00
joerg
7fd630031b
Don't use integer downcasts, use correctly sized constants for each test.
2014-02-27 17:25:28 +00:00
joerg
f161b30d74
Use an abs wide enough to cover the types involved.
2014-02-27 00:59:50 +00:00
martin
1f6c8fa478
Remove hardcoded VM_MIN_ADDRESS and instead query current value via
...
sysctl vm.minaddress.
2014-02-26 20:49:26 +00:00
martin
1f8b8a77e6
Remove excemption for i386 (PR lib/48601) - missing aliases will be
...
added to the C code.
2014-02-21 10:26:25 +00:00
martin
20ff963b35
For now excempt i386 from __sync_lock_test_and_set_8 and point to
...
PR lib/48601. Probably more architectures to follow.
2014-02-18 10:27:46 +00:00
joerg
0df5988fd8
Since clang doesn't recognize the nand variants of the sync builtins and
...
gcc doesn't support __has_builtin, use a plain #ifndef __clang__ check
as workaround.
2014-02-17 21:38:04 +00:00
martin
a2ebafbf22
Add a link-time test for __sync_* primitives (see PR 48368) - this
...
will allow us to notice missing functions during the build, instead
of when compiling arbitrary pkgsrc stuff later.
2014-02-17 10:10:41 +00:00
jmmv
e110dcc954
Use compiler builtins instead of atf_arch and atf_machine.
...
The atf_arch and atf_machine configuration variables were removed from
atf-0.19 without me realizing that some tests were querying them directly.
Instead of reintroducing those variables, just rely on compiler builtins
as many other tests already do.
Should fix PR bin/48582.
2014-02-09 21:26:07 +00:00
martin
e9501cb2dc
Add a few more test values from the range that sparc64 previously would
...
have got wrong.
2014-02-02 08:16:22 +00:00
martin
3de77da158
Skip testcase inside its body for architectures w/o long double support
2014-02-01 13:53:16 +00:00
martin
5f1a738958
Print a slightly more helpfull message in case of test failure
2014-02-01 10:00:04 +00:00
joerg
f830673a68
No unused functions if there is no long double support.
2014-01-30 22:15:55 +00:00
joerg
048981b58c
Add test for uint64 to real long double conversion.
2014-01-30 15:04:04 +00:00
matt
2aecc71d04
Support using fenv instead of fpsetmask if HAVE_FENV is defined.
2014-01-26 21:04:46 +00:00
matt
0d162304ca
Make this real even though it isn't yet used.
2014-01-26 20:42:06 +00:00
skrll
ec88ed8b1f
Use English spelling of alignment.
2014-01-25 10:09:47 +00:00