summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-23 20:19:22 +0100
committerw0rp <devw0rp@gmail.com>2020-08-23 20:19:22 +0100
commit33eb03ea7102aaea5b8791cfa070961b40fc40fd (patch)
treec9f429d54f2ba7692af4881b3b28f68bd9e3e5ea
parentd4583f1a63ca02a36eea5437fc3674b572213cbd (diff)
downloadale-33eb03ea7102aaea5b8791cfa070961b40fc40fd.zip
Yes, try again to fix Windows tests
-rw-r--r--test/fix/test_ale_fix.vader7
1 files changed, 2 insertions, 5 deletions
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