diff options
author | Araq <rumpf_a@web.de> | 2019-01-13 13:54:44 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-01-13 13:54:44 +0100 |
commit | 796432ff9439a0d0137f342162d78cf11f2d27a5 (patch) | |
tree | 8de697b09a5b697cddf5910e3699cb2b5bc14b22 /tests/stdlib/tosproc.nim | |
parent | 40115cd6458457d071600526aa1037eaffe99f79 (diff) | |
download | Nim-796432ff9439a0d0137f342162d78cf11f2d27a5.tar.gz |
make tests more robust; tests should be deterministic, no randomize() calls in tests
Diffstat (limited to 'tests/stdlib/tosproc.nim')
-rw-r--r-- | tests/stdlib/tosproc.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/stdlib/tosproc.nim b/tests/stdlib/tosproc.nim index 7a7c1836f..b8d3be9bb 100644 --- a/tests/stdlib/tosproc.nim +++ b/tests/stdlib/tosproc.nim @@ -93,4 +93,7 @@ else: doAssert outStr2 == absolutePath(testDir) & "\nx yz\n" removeDir(testDir) - removeFile(exePath) + try: + removeFile(exePath) + except OSError: + discard |