Mercurial > vim
comparison src/testdir/test_vim9_disassemble.vim @ 29970:d891115c0aea v9.0.0323
patch 9.0.0323: using common name in tests leads to flaky tests
Commit: https://github.com/vim/vim/commit/3b0d70f4ff436cb144683dafd956e8a3ee485a90
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 22:31:20 2022 +0100
patch 9.0.0323: using common name in tests leads to flaky tests
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 23:45:04 +0200 |
parents | 35cbea786334 |
children | d269dd3cd31d |
comparison
equal
deleted
inserted
replaced
29969:5f2d38cacd6c | 29970:d891115c0aea |
---|---|
313 var localfloat = 1.234 | 313 var localfloat = 1.234 |
314 endif | 314 endif |
315 enddef | 315 enddef |
316 | 316 |
317 def Test_disassemble_push() | 317 def Test_disassemble_push() |
318 mkdir('Xdir/autoload', 'p') | 318 mkdir('Xdisdir/autoload', 'p') |
319 var save_rtp = &rtp | 319 var save_rtp = &rtp |
320 exe 'set rtp^=' .. getcwd() .. '/Xdir' | 320 exe 'set rtp^=' .. getcwd() .. '/Xdisdir' |
321 | 321 |
322 var lines =<< trim END | 322 var lines =<< trim END |
323 vim9script | 323 vim9script |
324 END | 324 END |
325 writefile(lines, 'Xdir/autoload/autoscript.vim') | 325 writefile(lines, 'Xdisdir/autoload/autoscript.vim') |
326 | 326 |
327 lines =<< trim END | 327 lines =<< trim END |
328 vim9script | 328 vim9script |
329 import autoload 'autoscript.vim' | 329 import autoload 'autoscript.vim' |
330 | 330 |
340 '2 RETURN void', | 340 '2 RETURN void', |
341 res) | 341 res) |
342 END | 342 END |
343 v9.CheckScriptSuccess(lines) | 343 v9.CheckScriptSuccess(lines) |
344 | 344 |
345 delete('Xdir', 'rf') | 345 delete('Xdisdir', 'rf') |
346 &rtp = save_rtp | 346 &rtp = save_rtp |
347 enddef | 347 enddef |
348 | 348 |
349 def Test_disassemble_import_autoload() | 349 def Test_disassemble_import_autoload() |
350 writefile(['vim9script'], 'XimportAL.vim') | 350 writefile(['vim9script'], 'XimportAL.vim') |