1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-14 19:24:06 +03:00

10 Commits

Author SHA1 Message Date
Nick Wellnhofer
e8fdf5df6e Fix unused function warning in testapi.c
Check whether all param and return types are known before generating
functions for param types. Otherwise, unused functions end up in
testapi.c.
2019-01-06 14:25:18 +01:00
Nick Wellnhofer
e61c82175e Run Travis ASan tests with "sudo: required"
See https://github.com/travis-ci/travis-ci/issues/9033
2018-04-16 20:46:13 +02:00
Nick Wellnhofer
1637d612d1 Disable pointer-overflow UBSan checks under Travis
clang 5 added UBSan checks for pointer overflow which are triggered by
an API test.
2018-01-08 19:19:42 +01:00
Nick Wellnhofer
790c230fcf Run Travis tests with -Werror 2017-11-27 14:35:29 +01:00
Nick Wellnhofer
8813f397f8 Simplify XPath NaN, inf and -0 handling
Use C99 macros NAN, INFINITY, isnan, isinf. If they're not available:

- Assume that (0.0 / 0.0) generates a NaN and !(x == x) tests for NaN.
- Use C89's HUGE_VAL for INFINITY.

Remove manual handling of NaN, infinity and negative zero in functions
xmlXPathValueFlipSign and xmlXPathDivValues.

Remove xmlXPathGetSign. All the tests for negative zero can be replaced
with a test for negative or positive zero.

Simplify xmlXPathRoundFunction.

Remove Trio dependency.

This should work on IEEE 754 compliant implementations even if the C99
macros aren't available, but will likely break some ancient platforms.
If problems arise, my plan is to port the relevant trionan.c solution
to xpath.c. Note that non-compliant implementations are impossible
to fully support, anyway, since XPath requires IEEE 754.
2017-11-14 15:58:40 +01:00
Nick Wellnhofer
cfa912dd91 Fix deprecated Travis compiler flag 2017-10-21 15:02:30 +02:00
Nick Wellnhofer
03a238f954 Use __linux__ macro in generated code 2017-10-07 15:22:57 +02:00
Nick Wellnhofer
2cdaaab11c Change preprocessor OS tests to __linux__
"linux" without leading underscores is deprecated and less reliable.
2017-09-14 21:30:51 +02:00
Nick Wellnhofer
863b57925a Make Travis print UBSan stacktraces 2017-06-01 17:53:38 +02:00
Nick Wellnhofer
a2b5317834 Add .travis.yml
For now this is mainly useful if you work on a fork of the libxml2
mirror on GitHub:

    https://github.com/GNOME/libxml2

Start with two build setups:

- GCC with as many GNU extensions disabled as possible, trying to
  emulate a C89 compiler on a POSIX system.

- clang with ASan and UBSan.

The Python tests don't set an exit code, so Travis won't detect
failures. The same goes for "make tests", but we only run "make check"
anyway.
2017-06-01 14:32:23 +02:00