aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Amend r343442, by only expecting the lib.msun.cbrt_test.cbrtl_powl andDimitry Andric2019-02-081-1/+2
| | | | | | | | | | | | | trig_test.reduction test cases to fail, if the fixes from r343916 have not yet been applied to the base compiler. Reported by: lwhsu PR: 234040 Upstream PR: https://bugs.llvm.org/show_bug.cgi?id=40206 MFC after: 1 week Notes: svn path=/head/; revision=343917
* Temporarily mark lib.msun.{cbrt_test.cbrtl_powl,trig_test.reduction}Li-Wen Hsu2019-01-251-0/+4
| | | | | | | | | | | | | expected failure after clang700-import merge PR: 234040 Reviewed by: ngie, markj Approved by: markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18938 Notes: svn path=/head/; revision=343442
* Resolve conflicts between macros in fenv.h and ieeefp.hDimitry Andric2018-05-311-4/+0
| | | | | | | | | | | | | | | | | | | | | | | This is a follow-up to r321483, which disabled -Wmacro-redefined for some lib/msun tests. If an application included both fenv.h and ieeefp.h, several macros such as __fldcw(), __fldenv() were defined in both headers, with slightly different arguments, leading to conflicts. Fix this by putting all the common macros in the machine-specific versions of ieeefp.h. Where needed, update the arguments in places where the macros are invoked. This also slightly reduces the differences between the amd64 and i386 versions of ieeefp.h. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D15633 Notes: svn path=/head/; revision=334445
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* lib/msun: add more csqrt unit tests for precision and overflowRyan Libby2017-08-291-19/+100
| | | | | | | | | Reviewed by: bde Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=323004
* Revert r321457Enji Cooper2017-08-261-5/+0
| | | | | | | | | | | It doesn't fail after ^/head@r322855 (the releng_50 clang merge). PR: 220989 MFC after: 2 months MFC with: r321369, r322855 Notes: svn path=/head/; revision=322921
* Re-add #endif accidentally deleted in r321484Enji Cooper2017-07-251-0/+1
| | | | | | | | MFC after: 1 month MFC with: r321455, r321484 Notes: svn path=/head/; revision=321486
* Only test ld_pi_odd with LDBL_MANT_DIG == 64 to fix the buildEnji Cooper2017-07-251-6/+1
| | | | | | | | | | | | The empty (unimplemented) test inputs for sparc64 trigger a -Wtype-limits build failure because nitems of an empty array is always false, i.e., deadcode. MFC after: 1 month MFC with: r321455 Reported by: Jenkins (sparc64 job) Notes: svn path=/head/; revision=321484
* Mask issues with duplicate definitions for __fnstcw, __fldenv, and __fldcw onEnji Cooper2017-07-251-0/+4
| | | | | | | | | i386 by ignoring -Wmacro-redefined. This is a bandaid until the code is fixed and will be reverted before MFC. Notes: svn path=/head/; revision=321483
* Mark :reduction as an expected failureEnji Cooper2017-07-251-0/+5
| | | | | | | | | | | | It fails with clang 5.0+. PR: 220989 MFC after: 2 months MFC with: r321369 Reported by: Jenkins Notes: svn path=/head/; revision=321457
* Convert lib/msun/trig_test from TAP to ATF formatEnji Cooper2017-07-252-69/+73
| | | | | | | | | | | Only expose :accuracy and :reduction if !i386, similar to before, but more holistically to avoid future -Wunused issue with the unused functions. MFC after: 1 month Notes: svn path=/head/; revision=321456
* Raise WARNS to 1Enji Cooper2017-07-251-2/+2
| | | | | | | | | This will enable warnings with the msun tests. MFC after: 1 month Notes: svn path=/head/; revision=321455
* logarithm_test: assert that feclearexcept succeedsEnji Cooper2017-05-291-1/+1
| | | | | | | | | | | | This helps ensure that test preconditons are fulfilled. MFC after: 3 days Reported by: Coverity CID: 1346572 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319158
* fma_test: mute a warning about unreachable code on amd64 by restructuringEnji Cooper2017-05-291-1/+2
| | | | | | | | | | | | | the #ifdef block to only handle the rest of the logic in the loop in the #else case. MFC after: 3 days Reported by: Coverity CID: 1346844 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319157
* Document that the msun tests require WARNS=0Alan Somers2017-03-111-0/+2
| | | | | | | | | | | | | | ATF tests have a default WARNS of 0, unlike other usermode programs. This change is technically a noop, but it documents that the msun tests don't work with any warnings enabled, at least not on all architectures. Reviewed by: ngie MFC after: 3 weeks Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 Notes: svn path=/head/; revision=315034
* Expect :test_zero_input to fail on amd64Enji Cooper2017-03-091-0/+7
| | | | | | | | | | | | | | | The clang 4.x+ upgrade now causes this testcase to fail, but only on amd64. More investigation will be done to determine the cause. MFC after: 1 week Reported by: Jenkins PR: 217528 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314951
* Don't expect :test_large_inputs to fail with i386 anymoreEnji Cooper2017-03-091-4/+0
| | | | | | | | | | | | Recent changes (maybe a side-effect of the ATF-ification in r314649) invalidate the failure expectation. PR: 205446 MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314950
* Fix warnings in lib/msun/tests/... to help pave way for WARNS?= 6.Enji Cooper2017-03-0418-214/+210
| | | | | | | | | | | | | | - Staticize variables. - Use nitems liberally. Wherever nitems is used, use unsigned integers - Remove unused variables (argc, argv, etc) This fixes most issues -- some issues remain in logarithm_test though. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314650
* Convert lib/msun/ctrig_test from TAP to ATFEnji Cooper2017-03-042-50/+56
| | | | | | | | | | | | This is being done as a precursor for work needed to annontate failing testcases with clang 4.0+. MFC after: 1 week PR: 217528 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314649
* Handle clang 4.x+ with the compile-time exception added in r312213Enji Cooper2017-02-141-1/+2
| | | | | | | | | | | | | It also fails the assertions noted in bug 208703 PR: 208703 PR: 217084 Submitted by: jbeich MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313713
* Turn COMPILER_VERSION/COMPILER_TYPE make check into a compile-time checkEnji Cooper2017-01-152-5/+19
| | | | | | | | | | | | | | | | of the clang version This works around breakage on ^/stable/10 when running installworld from a ^/stable/10 host where the test wouldn't be compiled on the first go-around and would be missing when make installworld is run. MFC after: 1 week PR: 208703 Reported by: emaste Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312213
* fmaxmin_test still fails with clang 3.9.x.. bypass the testEnji Cooper2017-01-131-1/+1
| | | | | | | | | MFC after: 3 days PR: 208703 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312012
* Upgrade NetBSD tests to 01.11.2017_23.20 snapshotEnji Cooper2017-01-131-1/+6
| | | | | | | | | | | | | | | This contains some new testcases in /usr/tests/...: - .../lib/libc - .../lib/libthr - .../lib/msun - .../sys/kern Tested on: amd64, i386 MFC after: 1 month Notes: svn path=/head/; revision=312008
* MFhead @ r305314Enji Cooper2016-09-031-2/+4
|\ | | | | | | Notes: svn path=/projects/netbsd-tests-update-12/; revision=305315
| * Skip :test_large on i386Enji Cooper2016-09-021-2/+4
| | | | | | | | | | | | | | | | | | | | More assertions are failing on ^/head now. PR: 205446 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=305283
* | Adjust CFLAGS for fmod_test so it can find isqemu.hEnji Cooper2016-08-131-0/+3
|/ | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/netbsd-tests-update-12/; revision=304032
* Revert r298434 which should be fixed by r301287, r301394, and r301403.Bryan Drewery2016-08-081-9/+3
| | | | | | | PR: 208703, 208963 Notes: svn path=/head/; revision=303841
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299094
* Completely disable fmaxmin_test (follow up to r297952)Enji Cooper2016-04-211-3/+9
| | | | | | | | | | | | | COMPILER_TYPE/COMPILER_VERSION doesn't get passed down properly at buildworld/installworld with older build hosts MFC after: never PR: 208703, 208963 Reported by: Jenkins Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=298434
* MFHGlen Barber2016-04-161-0/+5
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=298092
| * Disable fmaxmin_test when compiling it with clang 3.8.0Enji Cooper2016-04-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The testcase always fails today due to how C11 7.6.1/2 is interpreted with clang 3.8.0 when combined with "#pragma STDC FENV_ACCESS ON". This testcase passes with clang <3.8.0 and gcc, so continue testing it with those compiler combinations More intelligent discussion on the issue is in the PR MFC after: never PR: 208703 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297952
* | MFHGlen Barber2016-04-121-3/+3
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297861
| * Fix appending -O0 to CFLAGSEnji Cooper2016-04-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The previous method would completely nerf CFLAGS once bsd.progs.mk had recursed into the per-PROG logic and make the CFLAGS for tap testcases to -O0, instead of appending to CFLAGS for all of the tap testcases. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297836
* | MFHGlen Barber2016-03-101-0/+21
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-091-0/+21
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | MFHGlen Barber2016-03-061-0/+4
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296422
| * Disable building the csqrt_test test on arm64, it hits an assert inAndrew Turner2016-01-111-0/+4
| | | | | | | | | | | | | | llvm 3.8. Notes: svn path=/projects/clang380-import/; revision=293702
* | First pass to fix the 'tests' packages.Glen Barber2016-02-021-0/+3
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Use j instead of a hardcoded index (9) and increment it afterEnji Cooper2015-12-231-1/+2
| | | | | | | | | | | running the NaNs testcases MFC after: 3 days Pointyhat to: ngie Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292647
* Integrate the remaining tools/regression/lib/msun testcases into theEnji Cooper2015-12-208-1/+1978
| | | | | | | | | | | FreeBSD test suite under lib/msun/tests MFC after: 3 weeks X-MFC with: r292328 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292497
* Integrate a number of testcases from tools/regression/lib/msunEnji Cooper2015-12-1615-1/+3427
| | | | | | | | | | | | | | | | | into the FreeBSD test suite There's no functional change with these testcases; they're purposely being left in TAP format for the time being Other testcases which crash on amd64/i386 as-is have not been integrated yet (they need to be retested on a later version of CURRENT, as I haven't used i386 in some time) MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292328
* We have long double on arm64, and the tests pass so enable them.Andrew Turner2015-10-311-1/+3
| | | | | | | Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=290227
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-121-4/+0
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* The presence/absence of CPU features should be tested withWarner Losh2015-04-281-1/+3
| | | | | | | | | | MACHINE_CPUARCH or MACHINE_ARCH, not MACHINE. The latter is for kernel only things. Also, I think this should be unconditional since all our architectures have long double support, but I don't have time to test that thoroughly so just add a comment to that effect. Notes: svn path=/head/; revision=282146
* Remove per-architecture checks for enabling HAVE_FENV_HEnji Cooper2015-04-271-4/+1
| | | | | | | | | | | | | | | | | The conditional came from NetBSD, where only select architectures have this header/support All architectures on FreeBSD have the necessary support though, so the conditional's completely unnecessary make tinderbox done on all architectures (including arm64, where the issue occurred before) this time X-MFC with: r282057, r282092 MFC after: 6 days Notes: svn path=/head/; revision=282106
* Correct the spelling of MACHINE_CPUARCH, MACHINE_CPU is not set on arm64.Andrew Turner2015-04-271-1/+1
| | | | Notes: svn path=/head/; revision=282092
* Convert libraries to use LIBADDBaptiste Daroussin2014-11-251-2/+1
| | | | | | | While here reduce a bit overlinking Notes: svn path=/head/; revision=275024
* Add reachover Makefiles for contrib/netbsd-tests/lib/librtEnji Cooper2014-11-171-0/+63
A variant of this code has been tested on amd64/i386 for some time by EMC/Isilon on 10-STABLE/11-CURRENT. It builds on other architectures, but the code will remain off until it's proven it works on virtual hardware or real hardware on other architectures Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274618