changeset 17083:6641a15f999d v8.1.1541

patch 8.1.1541: check for ASAN is not reliable commit https://github.com/vim/vim/commit/bffc50494d52a3690cbbc5c7b34a835f9153184e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 15 16:34:21 2019 +0200 patch 8.1.1541: check for ASAN is not reliable Problem: Check for ASAN is not reliable. Solution: Check the version output. (Dominique Pelle, closes https://github.com/vim/vim/issues/4543)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jun 2019 16:45:04 +0200
parents 76f837f6d427
children 06dcb09b3b07
files src/testdir/test_memory_usage.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_memory_usage.vim
+++ b/src/testdir/test_memory_usage.vim
@@ -6,7 +6,7 @@ endif
 if has('gui_running')
   throw 'Skipped, does not work in GUI'
 endif
-if $ASAN_OPTIONS !=# ''
+if execute('version') =~# '-fsanitize=[a-z,]*\<address\>'
   " Skip tests on Travis CI ASAN build because it's difficult to estimate
   " memory usage.
   throw 'Skipped, does not work with ASAN'
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1541,
+/**/
     1540,
 /**/
     1539,