summaryrefslogtreecommitdiff
path: root/testsuite/lib
Commit message (Collapse)AuthorAgeFilesLines
* Never link pthread for androidAnthony Green2022-09-261-12/+15
|
* Add MSYS configuration files (#728)Hans2022-09-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * Add MSYS configuration files MSYS behaves very similiar to Cygwin, e.g. also __CYGWIN__ is defined. Now 'make check' passes on MSYS without extra patches. * Fix warning extra tokens at end of #endif in closures.c Extra tokens converted into a comment. Also nearby indentations corrected. * Fix missing prototype warning mkostemp() on Cygwin Cygwin requires also _GNU_SOURCE to be defined to enable mkostemp() prototype. * Fix warning label ‘out’ defined but not used in ffi functions Define same preprocessor conditions for goto and label visibility. * Fix warning label ‘out’ defined but not used and related indentations. Define same preprocessor conditions for goto and label visibility. Correct also related indentations. Co-authored-by: Hannes Müller <>
* Fix unwindtest on macosAnthony Green2022-09-061-1/+5
|
* Prune warnings from sparc64 linux ldAnthony Green2022-09-041-7/+9
|
* testsuite: fix compiler vendor detection on dash as /bin/sh (#594)Sergei Trofimovich2021-03-241-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | In https://bugs.gentoo.org/753299 Paolo Pedroni reported a single test failure out of all libffi. Here is the minimal reproducer: ``` $ ./autogen $ CONFIG_SHELL=/bin/dash ./configure --host=x86_64-pc-linux-gnu $ make check RUNTESTFLAGS='complex.exp' ... FAIL: libffi.complex/cls_align_complex_float.c (test for excess errors) ``` This happens because under 'dash' shell autoconf generates slightly different style of string quotation in `config.log`: - on bash: `ax_cv_c_compiler_vendor=gnu` - on dash: `ax_cv_c_compiler_vendor='gnu'` To avoid shell quotation parsing the change just embeds `compiler_vendor` into `local.exp` at configure time. Reported-by: Paolo Pedroni Bug: https://bugs.gentoo.org/753299 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Add gcc bug tests backAnthony Green2020-06-071-2/+22
|
* Remove gccbug detection. GCC is good now.Anthony Green2019-11-221-18/+1
|
* Test on arm32v7-linux-gnu, ppc64le-linux-gnu and aarch64-linux-gnu.Anthony Green2019-10-161-4/+25
| | | | | | | Use docker images and qemu to test libffi for non-x86 architectures on travis-ci. Use the LIBFFI_TEST_OPTIMIZATION environment variable to force specific optimization levels at test time.
* Remove -Os testing. No ABI impact, and helps trim log lengths.Anthony Green2019-02-121-3/+3
|
* Mark some cases as xfail due to GCC bugAnthony Green2018-05-091-1/+190
|
* Re-enable msabi testing (#436)hjl-tools2018-05-021-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | * Revert "disable msabi testing for now" This reverts commit 7b7638eb0eac2adfa72f7ec9f254ba287c9947e2. * x86: Correct testing for 64-bit x86-64 Since passing -m32 to x86-64 compiler will generate i386 code, we need to check both __ILP32__ and __i386__ for 64-bit x86-64. * x86: Check __i386__ instead of i?86-*-* targets Since passing -m32 to x86-64 compiler will generate i386 code, we need to check __i386__ instead of i?86-*-* targets for i386 targets. * i386: Properly passing integer parameters in registers For thiscall and fastcall, if the paramter passed as 64-bit integer or struct, all following integer paramters will be passed on stack. * test: Add ABI_ATTR to callback_code Add ABI_ATTR to callback_code to properly test different ABIs.
* disable msabi testing for nowAnthony Green2018-04-021-7/+7
|
* Trim some optimization testsAnthony Green2018-03-291-2/+2
|
* Don't include WIN64/EFI64 for x32H.J. Lu2017-10-251-1/+2
| | | | | Since x32 doesn't support WIN64/EFI64, don't include it for x32. Also x32 has sizeof size_t == 4. But TARGET should be X86_64.
* Revert previous two changes. clang/MacOS problem can only be solved within ↵Anthony Green2017-03-151-3/+1
| | | | dejagnu.
* Fix typoAnthony Green2017-03-151-1/+1
|
* Work around dejagnu/clang problemsAnthony Green2017-03-151-2/+5
|
* Allow setting an arbitary value for blddirffi in testsuiteYuriy Kolerov2016-07-281-2/+5
| | | | | | | | It is useful when tests are executed not from build directory. So the path of the build directory may be passed through site.exp or runtest. Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
* ARC: Link tests with pthread libraryYuriy Kolerov2016-07-281-0/+4
| | | | Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
* Merge pull request #237 from tschwinge/libffi_feature_testTom Tromey2016-05-231-5/+6
|\ | | | | Simplify/fix libffi_feature_test
| * Simplify/fix libffi_feature_testThomas Schwinge2016-03-161-5/+6
| | | | | | | | | | | | | | | | As detailed in <http://news.gmane.org/find-root.php?message_id=%3C87wppswqqt.fsf%40kepler.schwinge.homeip.net%3E>, the original code (originally added in commit f1301a54bb80e6ae23f7687c68f36875dae69134 as part of pull request #145) does not work (at least not for me, in the GCC environment).
* | x86: Fix calling convention for ffi_closure_win64_innerRichard Henderson2016-04-291-0/+5
|/ | | | Also enable testing for the cross-abi calls.
* Fix dejagnu test support for --tool_optsFilipe Brandenburger2016-02-031-1/+1
| | | | | | | | | | | | | Right now it concatenates it with the existing options and then appends it to that list, fix it to simply append it as is, same as it is done with the other variables. Tested by running the following command which includes gcc options: $ make check RUNTESTFLAGS="--tool_opts '-Werror'" Without this patch, all the tests fail. With it, the test succeed. Inspecting the logs shows that -Werror was indeed used when compiling the test sources.
* testsuite: Use feature test rather than enumeration for complexRichard Henderson2014-11-141-0/+18
|
* testsuite: Detect clangRichard Henderson2014-11-141-38/+38
| | | | | Clang doesn't like the -Wno-psabi argument that we want to pass to GCC. Since clang is detected as GCC via __GNUC__, use ax_cv_c_compiler_vendor.
* Compile tests with -Wno-psabi when using GCCAnthony Green2014-09-201-2/+2
|
* Use the proper C++ compiler to run C++ testsJosh Triplett2014-03-271-0/+4
| | | | | Running the C compiler with -shared-libgcc -lstdc++ does not work on non-GCC compilers.
* testsuite: Add ABIs to the test matrix; unify tests across ABIsJosh Triplett2014-03-161-3/+26
| | | | | | | | | This eliminates all the *_win32.c tests in favor of the tests they were branched from, and expands test coverage to run many more tests on stdcall, thiscall, and fastcall. This same mechanism also supports testing any other target that has multiple ABIs.
* testsuite: Factor out a function to run a matrix of testsJosh Triplett2014-03-161-0/+17
| | | | | | | This commons up code from libffi.call/call.exp and libffi.special/special.exp, unifies the optimization option matrix between the two, and makes it easier to add more axes to the matrix in the future.
* Make compiler options in dejagnu runs compiler specificAnthony Green2013-01-081-0/+15
|
* +2012-03-21 Peter Rosin <peda@lysator.liu.se>Anthony Green2013-01-021-1/+21
| | | | | | | | + + * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*] + (set_ld_library_path_env_vars): Add the library search dir to PATH + (and save PATH for later). + (restore_ld_library_path_env_vars): Restore PATH.
* New stand-alone patchAnthony Green2013-01-022-0/+308
|
* Merge with GCC. Eliminate quilt bits.Anthony Green2013-01-022-328/+0
|
* AArch64 portAnthony Green2012-10-301-0/+4
|
* More cygwin fixesAnthony Green2012-03-211-1/+21
|
* Clean upsAnthony Green2011-02-082-302/+2
|
* 3.0.10rc0 changesAnthony Green2011-02-081-9/+3
|
* RebaseAnthony Green2010-11-212-62/+50
|
* rebaseAnthony Green2010-07-121-1/+1
|
* Rebase to latest GCC sourcesAnthony Green2010-04-131-4/+4
|
* Rebase from GCCAnthony Green2010-01-121-5/+5
|
* Reset quilt patches post 3.0.9 merge with GCCAnthony Green2010-01-013-11/+15
|
* 3.0.9rc12Anthony Green2009-12-291-1/+1
|
* 3.0.9rc9Anthony Green2009-12-261-1/+5
|
* Rebase from GCCAnthony Green2009-12-261-1/+1
|
* Release 3.0.9rc5Anthony Green2009-12-241-1/+1
|
* Update missing changes for 3.0.9r4.Anthony Green2009-12-241-4/+4
|
* Initial stand-alone patch.Anthony Green2009-10-043-12/+314
|
* Initial commitAnthony Green2009-10-043-0/+666