Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Mar 17, 2021
1 parent cddd683 commit b8b67ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/stdlib/tos.nim
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,12 @@ block getTempDir:
if existsEnv("TMPDIR"):
let origTmpDir = getEnv("TMPDIR")
putEnv("TMPDIR", "/mytmp")
doAssert getTempDir() == "/mytmp/"
doAssert getTempDir() == "/mytmp"
delEnv("TMPDIR")
doAssert getTempDir() == "/tmp/"
doAssert getTempDir() == "/tmp"
putEnv("TMPDIR", origTmpDir)
else:
doAssert getTempDir() == "/tmp/"
doAssert getTempDir() == "/tmp"

block osenv:
block delEnv:
Expand Down

0 comments on commit b8b67ad

Please sign in to comment.