From 33eb03ea7102aaea5b8791cfa070961b40fc40fd Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 23 Aug 2020 20:19:22 +0100 Subject: Yes, try again to fix Windows tests --- test/fix/test_ale_fix.vader | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/fix/test_ale_fix.vader') diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader index 7fe5c61c..e8a9dd7a 100644 --- a/test/fix/test_ale_fix.vader +++ b/test/fix/test_ale_fix.vader @@ -229,11 +229,8 @@ Execute(Should apply filename mpapings): let g:ale_fixers.testft = ['echo_filename'] ALEFix call ale#test#FlushJobs() - - if has('win32') - " We have to correct the output on Windows. - call setline(1, substitute(getline(1), '\r', '', '')) - endif + " Remote trailing whitespace from the line. + call setline(1, substitute(getline(1), '[ \r]\+$', '', '')) Expect(The mapped filename should be printed): /some/fake/path/test.txt -- cgit v1.2.3