aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/check.vim
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-03-14 13:55:12 +0000
committerGitHub <noreply@github.com>2022-03-14 13:55:12 +0000
commit2fbbd3258ec90d37c3192a1f7a8ee2cd4db5653e (patch)
tree7da2a639663d6c46e57766b5e9cb70a6ccd63c39 /src/nvim/testdir/check.vim
parent895ca52e4c726fd6c2cf6fbbab0d392818337ce7 (diff)
parent365a9b074f2df3c573ae4a520084818bdd46cd3d (diff)
downloadrneovim-2fbbd3258ec90d37c3192a1f7a8ee2cd4db5653e.tar.gz
rneovim-2fbbd3258ec90d37c3192a1f7a8ee2cd4db5653e.tar.bz2
rneovim-2fbbd3258ec90d37c3192a1f7a8ee2cd4db5653e.zip
Merge pull request #17488 from seandewar/vim-8.2.4428
vim-patch:8.2.{1401,1413,4428,4432,4434,4438,4442,4444,4445,4454}: tabpage patches
Diffstat (limited to 'src/nvim/testdir/check.vim')
-rw-r--r--src/nvim/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
index 883f036fe1..8f97d959ce 100644
--- a/src/nvim/testdir/check.vim
+++ b/src/nvim/testdir/check.vim
@@ -137,6 +137,14 @@ func CheckNotMSWindows()
endif
endfunc
+" Command to check for not running under ASAN
+command CheckNotAsan call CheckNotAsan()
+func CheckNotAsan()
+ if execute('version') =~# '-fsanitize=[a-z,]*\<address\>'
+ throw 'Skipped: does not work with ASAN'
+ endif
+endfunc
+
" Command to check for satisfying any of the conditions.
" e.g. CheckAnyOf Feature:bsd Feature:sun Linux
command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>)