mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
Make temporary file detection work on just about all platforms
This commit is contained in:
1 parent
71c2e65d64
commit
a59d1ddbf3
4 files changed
+7
-22
No files matched your search
@@ -52,9 +52,4 @@ Execute(ale#path#IsBufferPath should accept various names for stdin):
|
||||
Execute(ale#path#IsBufferPath should match files in /tmp):
|
||||
call ale#test#SetFilename('app/test.ts')
|
||||
|
||||
" Skip these checks on Windows.
|
||||
if !has('win32')
|
||||
Assert ale#path#IsBufferPath(bufnr(''), '../../../../../../../../tmp/vG0hKyD/1/test.ts')
|
||||
Assert ale#path#IsBufferPath(bufnr(''), '/tmp/vG0hKyD/1/test.ts')
|
||||
Assert ale#path#IsBufferPath(bufnr(''), '/run/user/1000/vG0hKyD/1/test.ts')
|
||||
endif
|
||||
Assert ale#path#IsBufferPath(bufnr(''), tempname() . '/test.ts')
|
||||
Reference in new issue
Block a user