Commit Graph

437 Commits

Author SHA1 Message Date
jruoho b78b168963 More bugs in pow(3); cases for PR port-amd64/45391. 2011-09-23 13:48:28 +00:00
jruoho 6337efd6b4 Remove ieeefp subdirectory. 2011-09-19 05:42:13 +00:00
jruoho 9ebeca8a64 Move duplicate ldexp(3) test out from the tests/libc. 2011-09-19 05:40:38 +00:00
jruoho 4a45a29ad9 Move the tests/libc/ieeefp to tests/libc/gen to match the structure of libc.
Also rename the test files to gain functional scope.
2011-09-19 05:25:50 +00:00
jruoho 81fd6738d6 IEEE checks for the exponential family. 2011-09-18 05:19:18 +00:00
jruoho 9273f704b7 Add few basic checks. 2011-09-18 04:49:11 +00:00
jruoho abfe6bc07d Reduce tolerance to see whether still acosf(cosf(x)) != x on i386/qemu. 2011-09-18 04:48:38 +00:00
jruoho 2b1d7604bf Remove ptrace(2) tests that are not yet ready but were accidentally
committed.
2011-09-17 18:53:31 +00:00
jruoho 9cbb4897e9 Simplify. 2011-09-17 18:52:21 +00:00
jruoho e0a0895c11 IEEE checks for the arcus functions. 2011-09-17 18:08:35 +00:00
jruoho 6c414326e6 Add more cases. 2011-09-17 12:12:19 +00:00
jruoho 99d89af157 Few tests for the error functions. 2011-09-17 12:00:50 +00:00
jruoho 719ceba55f IEEE corner case tests for the pow(3) family (incl. PR lib/45372). 2011-09-17 08:15:43 +00:00
jruoho ca5cfe7128 Reduce the powers. 2011-09-17 06:21:19 +00:00
plunky 2b8aaed8cd NULL does not need a cast, here 2011-09-16 16:13:16 +00:00
blymn 2494728ef8 - Update the check files due to a bug fix in the slave code 2011-09-16 08:05:28 +00:00
jruoho 6ceed68f62 Adjust to see where this fails on i386/qemu. 2011-09-16 04:54:46 +00:00
christos d4800a215d fix printf format strings 2011-09-15 16:25:17 +00:00
christos a2221b9cd5 add the reentrant function tests (copies of the non-reentrant one). 2011-09-15 14:51:06 +00:00
blymn 6f8e29ad78 - Add erase and kill to the terminal attributes so we can test
fetching them
- Remove functions from the input_functions array that don't really do
  input
- Re-enable the reporting of poll events after a function call
- Check that the return_type from the slave matches the expected one
- If verbose then print out the byte streams being compared in
  validate_byte
- When reporting a length mismatch during a byte validation, report
  the actual lengths.
2011-09-15 11:53:12 +00:00
blymn f47c5ad589 - add support for getparyx and getyx calls
- allow a NULL pointer to be returned to the director
- add support for passing back a single chtype character
- fix some indentation
- fix a lot of curses command calls that were just plain wrong
- don't try to allocate storage for a NULL parameter, it doesn't need it
2011-09-15 11:46:19 +00:00
blymn 82260c6d75 Remove the beep test for the moment, the return code does not conform
to SUSv2.  An update to the slave code will break this test until
beep() is fixed but that will require a major bump on the libcurses
library due to the interface change which is being deferred until all
the tests are done and all the interface changes can be batched up.
2011-09-15 11:36:43 +00:00
he e2734790d2 #ifdef on __vax__ one more place, to avoid reference to tanf() for vax. 2011-09-15 11:05:50 +00:00
martin 2f1110cffe A test case may not assume opening /dev/tty does something sensible. 2011-09-14 14:34:37 +00:00
jruoho 484972bd18 Fix bug/oversight. 2011-09-14 13:47:40 +00:00
jruoho ea461b7aa2 Additions to PR lib/45362: the float variants cosf(3), sinf(3), and tanf(3)
do not detect NaN for positive and negative infinity on i386 (qemu).
2011-09-14 13:29:58 +00:00
jruoho 8c901a0444 Use fabsf(3) when appropriate. 2011-09-14 06:50:43 +00:00
jruoho 8f667ecf71 Some tests for sine, cosine, and tangent. 2011-09-14 05:18:18 +00:00
jruoho 2cae26a144 Assign missing copyright to TNF.
XXX: If these originated from you, please modify accordingly.
2011-09-13 08:58:41 +00:00
jruoho 95a05df276 Improve metadata once again. 2011-09-13 07:07:32 +00:00
jruoho 95fc86fc91 Test ldexp(x, n) == x * exp2(n) && ldexpf(x, n) == x * exp2f(n). 2011-09-13 07:03:36 +00:00
jruoho 8fa0fcafcb Test that scalbn(x) == ldexp(2) whenever FLT_RADIX == 2 (like it should be
on all systems except exotic relics such as IBM 360).
2011-09-13 06:50:41 +00:00
jruoho a5f70e6aac When failing, point to the tracker PR lib/45362. 2011-09-13 04:24:30 +00:00
jruoho 7638c70b09 Expand the test file to contain 48 individual test cases. 2011-09-12 18:07:29 +00:00
jruoho f006ee10dc Improve the metadata descriptions. 2011-09-12 17:45:51 +00:00
jruoho 5fe096344e Fix typo. 2011-09-12 17:15:54 +00:00
jruoho bfd4049668 Merge 't_floor' to 't_ceil', and simplify. 2011-09-12 16:48:48 +00:00
jruoho 1701dae929 Happiness of VAX implies ugliness of the code. 2011-09-12 16:28:37 +00:00
jruoho 9a0782c38b Be more systematic and coarse-grained. 2011-09-12 16:00:56 +00:00
jruoho 173345a5e4 Add more assertions. 2011-09-12 15:47:14 +00:00
jruoho e409403697 Start systematic testing of libm(3) by first evaluating the corner cases
(NaN, +0.0, -0.0, +Inf, -Inf) for the ldexp(3) and scalbn(3) families.
2011-09-12 15:27:40 +00:00
jruoho 3ace9e826f Add one more case. Also remove a double fclose(3) and do not
steal stderr(3) as atf(7) may use it in case of failures.
2011-09-12 04:23:29 +00:00
jruoho f972aad29e See that system(3) works. 2011-09-11 10:32:23 +00:00
jruoho 6629be1b13 Naive tests for the naive putc(3) family. 2011-09-11 09:02:45 +00:00
jruoho 4c55f62c75 Few unit tests for the fopen(3) family. 2011-09-11 07:31:20 +00:00
jruoho 1c183744f5 Couple of unit tests for fflush(3). 2011-09-11 05:15:55 +00:00
jmmv 7970eac628 It's ATFFILE=no, not NOATFFILE=true. This fixes the contents of the
installed Atffile, and allows the tests to actually run.
2011-09-08 18:44:38 +00:00
jmmv 5de965f758 Remove temporary file committed by mistake. 2011-09-08 18:27:01 +00:00
blymn 14cd7a9b79 - Add a delay just after the function is passed to the slave, this
gives the slave time to process the command and produce output before
  the director drains output from the slave.  This is particularly
  important when the slave is set up for timed input because the ioctl
  used by curses to set the tty parameters waits for pending output to
  drain.
- make a debug statement conditional on verbose again
- make a warning about output from the slave conditional on verbose
- fix setting the minimum input delay, it should be milliseconds not
  nanoseconds.
- Handle nanosleep returning early due to a signal, restart the sleep
  with the remaining time.
2011-09-08 10:56:49 +00:00
jruoho 537167411c Remove some cruft that is no longer needed. 2011-08-29 17:39:54 +00:00