Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 17417:aa4532c1d001 v8.1.1707
patch 8.1.1707: Coverity warns for possibly using a NULL pointer
commit https://github.com/vim/vim/commit/cfdbc5adde49cbab939e8164555ed0b8d9ce000b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 17 21:27:52 2019 +0200
patch 8.1.1707: Coverity warns for possibly using a NULL pointer
Problem: Coverity warns for possibly using a NULL pointer.
Solution: Change the logic to make sure no NULL pointer is used.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 17 Jul 2019 21:30:04 +0200 |
parents | 40417757dffd |
children | 73e81cd9e6cb |
comparison
equal
deleted
inserted
replaced
17416:2a82ba1d2dd9 | 17417:aa4532c1d001 |
---|---|
640 call assert_fails('call popup_create([#{text: "text"}, 666], {})', 'E715:') | 640 call assert_fails('call popup_create([#{text: "text"}, 666], {})', 'E715:') |
641 call popup_clear() | 641 call popup_clear() |
642 call assert_fails('call popup_create([#{text: "text", props: "none"}], {})', 'E714:') | 642 call assert_fails('call popup_create([#{text: "text", props: "none"}], {})', 'E714:') |
643 call popup_clear() | 643 call popup_clear() |
644 call assert_fails('call popup_create([#{text: "text", props: ["none"]}], {})', 'E715:') | 644 call assert_fails('call popup_create([#{text: "text", props: ["none"]}], {})', 'E715:') |
645 call popup_clear() | |
646 call assert_fails('call popup_create("text", #{mask: ["asdf"]})', 'E475:') | |
647 call popup_clear() | |
648 call assert_fails('call popup_create("text", #{mask: test_null_list()})', 'E475:') | |
645 call popup_clear() | 649 call popup_clear() |
646 endfunc | 650 endfunc |
647 | 651 |
648 func Test_win_execute_closing_curwin() | 652 func Test_win_execute_closing_curwin() |
649 split | 653 split |