Refactor travis build to use clang's sanitizers

- Valgrind configuration removed
- Fix errors reported by the undefined behavior sanitizer
- Travis will now run two build steps:
  - A normal build of a shared library for unit testing(in parallel with gcc)
  - A clang build with some sanitizers enabled for integration testing.

After these changes travis will run much faster, while providing valgrind-like
error detection.
This commit is contained in:
Thiago de Arruda
2014-03-13 12:11:03 -03:00
parent 3cac32e49c
commit f6ace9962d
9 changed files with 122 additions and 51 deletions

View File

@@ -4275,7 +4275,7 @@ eval6 (
else if (op == '/') {
/* We rely on the floating point library to handle divide
* by zero to result in "inf" and not a crash. */
f1 = f1 / f2;
f1 = f2 != 0 ? f1 / f2 : INFINITY;
} else {
EMSG(_("E804: Cannot use '%' with Float"));
return FAIL;