| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.033 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.033 |
| Problem: When the terminal has only 20 lines test 92 and 93 overwrite the |
| input file. |
| Solution: Explicitly write test.out. Check that the terminal is large enough |
| to run the tests. (Hirohito Higashi) |
| Files: src/testdir/test92.in, src/testdir/test93.in, |
| src/testdir/test1.in, src/testdir/Makefile |
| |
| |
| |
| |
| |
| *** 33,39 **** |
| :mksession! test.out |
| :new test.out |
| :v/\(^ *normal! 0\|^ *exe 'normal!\)/d |
| ! :w |
| :qa! |
| ENDTEST |
| |
| --- 33,39 ---- |
| :mksession! test.out |
| :new test.out |
| :v/\(^ *normal! 0\|^ *exe 'normal!\)/d |
| ! :w! test.out |
| :qa! |
| ENDTEST |
| |
| |
| |
| |
| *** 33,39 **** |
| :mksession! test.out |
| :new test.out |
| :v/\(^ *normal! 0\|^ *exe 'normal!\)/d |
| ! :w |
| :qa! |
| ENDTEST |
| |
| --- 33,39 ---- |
| :mksession! test.out |
| :new test.out |
| :v/\(^ *normal! 0\|^ *exe 'normal!\)/d |
| ! :w! test.out |
| :qa! |
| ENDTEST |
| |
| |
| |
| |
| *** 18,23 **** |
| --- 18,27 ---- |
| Similar logic is applied to the +lua feature, using lua.vim. |
| |
| STARTTEST |
| + :" If columns or lines are too small, create wrongtermsize. |
| + :" (Some tests will fail. When columns and/or lines are small) |
| + :if &lines < 24 || &columns < 80 | sp another | w! wrongtermsize | qa! | endif |
| + :" |
| :" Write a single line to test.out to check if testing works at all. |
| :%d |
| athis is a test:w! test.out |
| |
| |
| |
| *** 58,66 **** |
| -rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.* |
| |
| test1.out: test1.in |
| ! -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) |
| $(RUN_VIM) $*.in |
| ! @/bin/sh -c "if diff test.out $*.ok; \ |
| then mv -f test.out $*.out; \ |
| else echo; \ |
| echo test1 FAILED - Something basic is wrong; \ |
| --- 58,70 ---- |
| -rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.* |
| |
| test1.out: test1.in |
| ! -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize |
| $(RUN_VIM) $*.in |
| ! @/bin/sh -c "if test -e wrongtermsize; \ |
| ! then echo; \ |
| ! echo test1 FAILED - terminal size must be 80x24 or larger; \ |
| ! echo; exit 1; \ |
| ! elif diff test.out $*.ok; \ |
| then mv -f test.out $*.out; \ |
| else echo; \ |
| echo test1 FAILED - Something basic is wrong; \ |
| |
| |
| |
| *** 740,741 **** |
| --- 740,743 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 33, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 248. You sign your letters with your e-mail address instead of your name. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |