Mercurial > vim
comparison src/testdir/check.vim @ 23766:704fdd4d0949 v8.2.2424
patch 8.2.2424: some tests are known to cause an error with ASAN
Commit: https://github.com/vim/vim/commit/97202d951685fc4d90085da676a90644cbf72571
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 28 18:34:35 2021 +0100
patch 8.2.2424: some tests are known to cause an error with ASAN
Problem: Some tests are known to cause an error with ASAN.
Solution: Add CheckNotAsan.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Jan 2021 18:45:03 +0100 |
parents | 820f24dc1e3e |
children | 12a773f4f62f |
comparison
equal
deleted
inserted
replaced
23765:6943434d5d93 | 23766:704fdd4d0949 |
---|---|
181 " TODO: How to check it in other platforms? | 181 " TODO: How to check it in other platforms? |
182 endif | 182 endif |
183 return v:false | 183 return v:false |
184 endfunc | 184 endfunc |
185 | 185 |
186 " Command to check for not running under ASAN | |
187 command CheckNotAsan call CheckNotAsan() | |
188 func CheckNotAsan() | |
189 if execute('version') =~# '-fsanitize=[a-z,]*\<address\>' | |
190 throw 'Skipped: does not work with ASAN' | |
191 endif | |
192 endfunc | |
193 | |
186 " vim: shiftwidth=2 sts=2 expandtab | 194 " vim: shiftwidth=2 sts=2 expandtab |