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

@@ -2834,8 +2834,10 @@ do_ecmd (
* <VN> We could instead free the synblock
* and re-attach to buffer, perhaps.
*/
if (curwin->w_s == &(curwin->w_buffer->b_s))
if (curwin->w_buffer != NULL &&
curwin->w_s == &(curwin->w_buffer->b_s))
curwin->w_s = &(buf->b_s);
curwin->w_buffer = buf;
curbuf = buf;
++curbuf->b_nwindows;