Mercurial > vim
comparison src/testdir/test_channel.vim @ 8465:5927180d0b4d v7.4.1523
commit https://github.com/vim/vim/commit/0622732b32ff4a883e4f490a1b38ada539da8ba2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 8 20:58:29 2016 +0100
patch 7.4.1523
Problem: Writing channel to a file fails on MS-Windows.
Solution: Disable it for now.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 08 Mar 2016 21:00:04 +0100 |
parents | 508504ca52ac |
children | c1aae3a79279 |
comparison
equal
deleted
inserted
replaced
8464:accd3cfd6957 | 8465:5927180d0b4d |
---|---|
548 | 548 |
549 func Test_nl_write_out_file() | 549 func Test_nl_write_out_file() |
550 if !has('job') | 550 if !has('job') |
551 return | 551 return |
552 endif | 552 endif |
553 " TODO: make this work for MS-Windows | |
554 if !has('unix') | |
555 return | |
556 endif | |
553 call ch_log('Test_nl_write_out_file()') | 557 call ch_log('Test_nl_write_out_file()') |
554 let job = job_start(s:python . " test_channel_pipe.py", | 558 let job = job_start(s:python . " test_channel_pipe.py", |
555 \ {'out-io': 'file', 'out-name': 'Xoutput'}) | 559 \ {'out-io': 'file', 'out-name': 'Xoutput'}) |
556 call assert_equal("run", job_status(job)) | 560 call assert_equal("run", job_status(job)) |
557 try | 561 try |
569 | 573 |
570 func Test_nl_write_err_file() | 574 func Test_nl_write_err_file() |
571 if !has('job') | 575 if !has('job') |
572 return | 576 return |
573 endif | 577 endif |
578 " TODO: make this work for MS-Windows | |
579 if !has('unix') | |
580 return | |
581 endif | |
574 call ch_log('Test_nl_write_err_file()') | 582 call ch_log('Test_nl_write_err_file()') |
575 let job = job_start(s:python . " test_channel_pipe.py", | 583 let job = job_start(s:python . " test_channel_pipe.py", |
576 \ {'err-io': 'file', 'err-name': 'Xoutput'}) | 584 \ {'err-io': 'file', 'err-name': 'Xoutput'}) |
577 call assert_equal("run", job_status(job)) | 585 call assert_equal("run", job_status(job)) |
578 try | 586 try |
588 endtry | 596 endtry |
589 endfunc | 597 endfunc |
590 | 598 |
591 func Test_nl_write_both_file() | 599 func Test_nl_write_both_file() |
592 if !has('job') | 600 if !has('job') |
601 return | |
602 endif | |
603 " TODO: make this work for MS-Windows | |
604 if !has('unix') | |
593 return | 605 return |
594 endif | 606 endif |
595 call ch_log('Test_nl_write_both_file()') | 607 call ch_log('Test_nl_write_both_file()') |
596 let job = job_start(s:python . " test_channel_pipe.py", | 608 let job = job_start(s:python . " test_channel_pipe.py", |
597 \ {'out-io': 'file', 'out-name': 'Xoutput', 'err-io': 'out'}) | 609 \ {'out-io': 'file', 'out-name': 'Xoutput', 'err-io': 'out'}) |