Commit Graph
53 Commits
Author SHA1 Message Date
Martin Storsjö 00edbd4ec3 crt-test: Test negative zero in a few places 2019-08-01 22:30:45 +03:00
Martin Storsjö f07f6b71fe crt-test: Add tests for many more math functions
This should complete the coverage of all the C99 math functions.
2019-08-01 22:30:45 +03:00
Martin Storsjö e9da355304 crt-test: Test the copysign function on any platform, not only on windows 2019-08-01 22:30:45 +03:00
Martin Storsjö 7347d257ed crt-test: More thoroughly test some math functions
Also check that NaN is propagated properly where possible.
2019-08-01 22:30:45 +03:00
Martin Storsjö 52e7fff7a6 crt-test: Reduce code duplication in tests for math functions 2019-08-01 22:30:45 +03:00
Martin Storsjö 8eea910f47 crt-test: Extend existing tests for NAN to check that input NANs are preserved
Don't check the full NAN in itself, but check that the sign bit appears
correctly.
2019-08-01 22:30:45 +03:00
Martin Storsjö 2e6fa5bca7 crt-test: Wrap parameter expansion in TEST macros in parentheses 2019-08-01 22:30:45 +03:00
Martin Storsjö 70f074b599 crt-test: Restore the rounding direction after testing it 2019-08-01 22:30:45 +03:00
Martin Storsjö 8cf83f259e Add the testcase from llvm PR40322 2019-04-30 00:03:19 +03:00
Martin Storsjö c3a16814bd crt-test: Add tests for logb/ilogb 2019-04-29 12:17:07 +03:00
Martin Storsjö 566d1dece9 crt-test: Clarify a comment further 2019-04-29 12:16:02 +03:00
Martin Storsjö 7e74b87a29 crt-test: Remove workarounds for llrint rounding to even numbers
Also add testcases for the same case with other functions.
2019-04-20 07:37:11 +03:00
Martin Storsjö 306b98716b crt-test: Test powl on arm/aarch64 now 2019-04-20 07:37:11 +03:00
Martin Storsjö fd74ad4c52 crt-test: Remove a workaround for mingw math functions 2019-04-20 07:37:11 +03:00
Martin Storsjö 8cbdd0c9b4 crt-test: Clarify a comment about a workaround 2019-04-18 22:40:35 +03:00
Steve Lhomme 707fda6348 tests: add a test to make sure compiling forbidden UWP APIs fails
When building for UWP and works otherwise
2019-04-18 12:23:28 +03:00
Martin Storsjö 86e0b3732f crt-test: Remove skips for acosh(infinity) on x86 mingw
This is fixed in the latest upstream version.
2019-04-16 14:53:54 +03:00
Martin Storsjö cb7feea731 crt-test: Tweak TEST_FLT_ACCURACY to not accept NAN 2019-04-16 10:28:43 +03:00
Martin Storsjö 70c64e58c9 crt-test: Add tests for acosh/asinh/atanh 2019-04-16 10:28:43 +03:00
Martin Storsjö 141027d5d4 crt-test: Add tests for expm1 and log1p 2019-04-16 10:28:33 +03:00
Martin Storsjö 34cf84fa68 crt-test: Test putenv and the environ variable 2019-04-15 14:05:46 +03:00
Martin Storsjö fd39855471 crt-test: Remove a skip for fmodl on arm 2019-04-15 14:05:46 +03:00
Martin Storsjö a59b98bb0c crt-test: Test error reporting of CRT functions via errno 2019-04-15 14:05:46 +03:00
Martin Storsjö 62869c798c crt-test: Remove a skip for a floor function issue
When using the floor function from msvcrt/ucrt instead of a libmingwex
reimplementation, this test passes on arm as well.
2019-04-15 14:05:46 +03:00
Martin Storsjö a96783ee46 crt-test: Improve the tests for fmod/remainder/remquo 2019-04-09 14:20:23 +03:00
Martin Storsjö 776b1f4a84 crt-test: Add tests for modf 2019-04-09 13:17:06 +03:00
Martin Storsjö 3ccaf1c1bf crt-test: Add tests of fmod/remainder/remquo 2019-04-09 12:47:00 +03:00
Martin Storsjö cb71dfa03b crt-test: Test sincos() 2019-04-09 12:45:35 +03:00
Martin Storsjö 5d969f2a70 crt-test: Add tests of ldexp/scalbn/scalbln 2019-04-09 12:32:56 +03:00
Martin Storsjö dde687f36d crt-test: Add tests of exp2 2019-04-09 12:32:56 +03:00
Martin Storsjö f2f68dff90 crt-test: Add testcases of log2l 2019-04-09 12:32:56 +03:00
Steve Lhomme d3b256c7be test: ignore more generated files 2019-03-12 10:42:43 +02:00
Martin Storsjö 837fee3ce1 Clarify the output of the exception-locale test 2018-12-12 00:07:50 +02:00
Martin Storsjö c9817eca35 Add a testcase for ubsan 2018-10-17 22:45:54 +03:00
Martin Storsjö 03b99b5144 Do one in-bounds write in clean runs of stacksmash.c 2018-10-07 21:00:30 +03:00
Martin Storsjö a7616d6d23 Add helpful printouts in stacksmash.c 2018-10-02 21:34:54 +03:00
Martin Storsjö 6d7cef9e9e test: Rename ssp.c to stacksmash.c 2018-10-02 14:53:53 +03:00
Martin Storsjö f0aa7c4c10 Revert "Use dwarf exceptions on i686 as well"
This reverts commit ca43ab5ccd.

It was reported in https://github.com/mstorsjo/llvm-mingw/issues/8 that
the dwarf unwinding on i686 doesn't always work.

This commit adds a testcase for the case that didn't work previously.
2018-10-01 14:28:30 +03:00
Martin Storsjö 5a70c3cb78 Extend the dll autoimport test to test references to a external variable with offset 2018-09-07 00:02:16 +03:00
Martin Storsjö 37f8ba8516 Add tests for the autoimport feature 2018-09-05 12:21:46 +03:00
Martin Storsjö 4a1c91c208 Add a testcase for libssp 2018-08-13 23:50:01 +03:00
Martin Storsjö cef45a8937 Add missing copyright headers to a few new testcases 2018-08-13 09:18:33 +03:00
Martin Storsjö f92f858ae2 Add gitignores for new files generated by the previous commit 2018-08-03 10:56:49 +03:00
Martin Storsjö 26ab7a4424 Add a test app for thread local variables with destructors 2018-08-03 10:19:50 +03:00
Martin Storsjö 1836ed28dd Test __attribute__((constructor)) and __attribute__((destructor))
When using a global C++ object, the destructor isn't handled via
the .dtors section, but the destructor is set up with atexit() once
the constructor has been called.
2018-08-02 14:28:21 +03:00
Martin Storsjö 3b3924e4b1 test: Add a testcase for setjmp 2018-06-05 23:40:25 +03:00
Martin Storsjö 024d125611 test: Test the now fixed copysignl function on x86_64 as well 2018-06-04 10:08:47 +03:00
Martin Storsjö 6a3080fa58 test: More clearly print errors in the NAN tests 2018-06-04 10:08:47 +03:00
Martin Storsjö 0e86b1ed49 test: Extend the intrinsics tests 2018-06-04 10:08:47 +03:00
Martin Storsjö cacdf723fa Add ISC licenses to the test programs 2018-03-21 11:09:55 +02:00