narimiran
f0be575ed1
move tests from tospaths to tos, fixes #9671
...
Also, change some of `echo`s to `doAssert`.
2019-01-23 22:04:00 +01:00
Timothee Cour
9af85fb69f
fixes #10273 execShellCmd now returns nonzero when child killed with signal + other fixes ( #10274 )
...
* s/exitStatus(...)/exitStatusLikeShell(...)/
* fix #10273 execShellCmd now returns nonzero when child exits with signal
* test case for #10249 and explanation for the bug
* fix test failure
* add tests/nim.cfg
2019-01-13 09:00:39 +01:00
alaviss
b6257f3f21
os.walkDir: correctly evaluate paths when relative = true ( #10057 ) [backport]
2018-12-21 14:12:48 +01:00
Timothee Cour
fc7df3283c
fix test failure
2018-12-19 16:11:23 -08:00
Timothee Cour
656770402c
fix #8255 numerous issues with splitFile
2018-12-19 16:11:23 -08:00
Timothee Cour
25d3539da7
[os] fix #10017 regression, fix #10025 regression ( #10018 )
...
* [os] fix #10017 regression
* [os] fix #10025 regression
2018-12-18 12:43:25 +01:00
Araq
ce9815bcf5
os.nim: use the new pathnorm.normalizePath implementation
2018-12-14 08:57:55 +01:00
Oscar Nihlgård
e5aae93bfe
Add relative parameter to walkDirRec
2018-11-26 22:08:45 +01:00
Timothee Cour
3bef851143
fix #8225 os.isHidden was buggy on posix ( #8315 )
...
* fix #8225 isHidden was broken on posix
* scope rest of tos.nim under blocks to avoid variable scope bugs
2018-10-15 00:22:34 +02:00
alaviss
dad290accb
os: use unlink() to remove file ( #9220 )
...
removeFile() behavior should now be consistant between Windows and POSIX
Fixes #9200
2018-10-09 15:37:36 +02:00
Yasuhiro Horimoto
aa8249d177
Fix #9126 : use splitPath instead of substr
2018-09-30 23:20:14 +09:00
Timothee Cour
674bd7bfad
fix wrong arch defined(osx) ( #8492 )
2018-08-02 01:19:29 +02:00
Federico Ceratto
d65429d857
Add normalizePath and tests
2018-07-06 20:21:39 +01:00
Andreas Rumpf
20950ee073
make test green for OSX
2018-07-06 11:26:36 +02:00
Oscar Nihlgård
05b447374b
Use higher time resolution when available in os.nim ( #7709 )
2018-06-04 14:56:56 +02:00
Andreas Rumpf
013e11fcc4
add copyDir stdlib test
2017-01-10 11:27:03 +01:00
Araq
7f8a02d0c6
make tos.nim green on Windows
2016-12-13 09:01:53 +01:00
Dmitry Polienko
1cd4799b01
Improve as previously discussed
...
Better name for exposed primitive function, checks for pre-existing files
2016-10-22 18:39:10 +07:00
Dmitry Polienko
45b432b901
Revert createDir signature, expose rawCreateDir
2016-10-22 17:37:28 +07:00
Dmitry Polienko
48ef6761d8
Make createDir return discardable bool
2016-10-22 12:29:03 +07:00
Joey Payne
33146a74c1
Add os tests for directory creation, iteration and deletion
2016-06-20 14:32:01 -06:00
Adam Strzelecki
e80465dacf
tests: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Clay Sweetser
ce5a494927
Changed tests and tools to use 'discard' statements instead of 'nil' for empty blocks.
2014-02-15 18:57:03 -05:00
Araq
20b5f31c03
new tester; all tests categorized
2014-01-13 02:10:03 +01:00