summaryrefslogtreecommitdiff
path: root/test/test_tmpdir_wrapper.vader
blob: 4d87061fdfeba6c2c12947ad44fe63a0f6b47b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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