mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 00:22:28 +00:00
14 lines
290 B
Plaintext
14 lines
290 B
Plaintext
Before:
|
|
Save $TMPDIR
|
|
|
|
After:
|
|
Restore
|
|
|
|
Execute(ale#util#Tempname should create files in /tmp if $TMPDIR isn't set):
|
|
if has('unix')
|
|
let $TMPDIR = ''
|
|
Assert ale#util#Tempname() =~# '^/tmp'
|
|
" We should unlet the environment variable again.
|
|
AssertEqual '', $TMPDIR
|
|
endif
|