summary refs log tree commit diff stats
path: root/tests/stdlib/tos.nim
Commit message (Collapse)AuthorAgeFilesLines
* On windows, os.relativePath returns path as is when roots are different (#12329)Tomohiro2019-10-071-0/+15
| | | | | | | * On windows, os.relativePath returns path as is when roots are different * Implement os.sameRoot without windows API * Fix compile error when compiling lib/nimhcr.nim * Fix compile error when compiling lib/nimhcr.nim on Windows
* Fix how `relativePath` handle case sensitiviy (#12312) [backport]Tomohiro2019-10-011-0/+4
|
* Fixes splitfile (#11918) [bugfix]pgkos2019-08-151-0/+1
|
* [feature] Added os.delEnv; add delEnv support to nimscript too (#11466)Kaushal Modi2019-06-151-0/+13
| | | [feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
* Use TMPDIR env var if available to get the temp dir name (#11443) [bugfix]Kaushal Modi2019-06-101-0/+12
| | | | | | Additionally, use normalizePathEnd to suffix the dir name with "/" or "\" as appropriate for the current OS. Fixes https://github.com/nim-lang/Nim/issues/11439.
* move tests from `tospaths` to `tos`, fixes #9671narimiran2019-01-231-43/+111
| | | | Also, change some of `echo`s to `doAssert`.
* fixes #10273 execShellCmd now returns nonzero when child killed with signal ↵Timothee Cour2019-01-131-0/+2
| | | | | | | | | | + 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
* os.walkDir: correctly evaluate paths when relative = true (#10057) [backport]alaviss2018-12-211-0/+8
|
* fix test failureTimothee Cour2018-12-191-0/+1
|
* fix #8255 numerous issues with splitFileTimothee Cour2018-12-191-0/+15
|
* [os] fix #10017 regression, fix #10025 regression (#10018)Timothee Cour2018-12-181-2/+5
| | | | | * [os] fix #10017 regression * [os] fix #10025 regression
* os.nim: use the new pathnorm.normalizePath implementationAraq2018-12-141-55/+26
|
* Add `relative` parameter to walkDirRecOscar Nihlgård2018-11-261-0/+19
|
* fix #8225 os.isHidden was buggy on posix (#8315)Timothee Cour2018-10-151-94/+113
| | | | | | * fix #8225 isHidden was broken on posix * scope rest of tos.nim under blocks to avoid variable scope bugs
* os: use unlink() to remove file (#9220)alaviss2018-10-091-0/+9
| | | | | removeFile() behavior should now be consistant between Windows and POSIX Fixes #9200
* Fix #9126: use splitPath instead of substrYasuhiro Horimoto2018-09-301-0/+14
|
* fix wrong arch defined(osx) (#8492)Timothee Cour2018-08-021-1/+1
|
* Add normalizePath and testsFederico Ceratto2018-07-061-0/+62
|
* make test green for OSXAndreas Rumpf2018-07-061-2/+5
|
* Use higher time resolution when available in os.nim (#7709)Oscar Nihlgård2018-06-041-0/+10
|
* add copyDir stdlib testAndreas Rumpf2017-01-101-0/+18
|
* make tos.nim green on WindowsAraq2016-12-131-4/+7
|
* Improve as previously discussedDmitry Polienko2016-10-221-0/+10
| | | | Better name for exposed primitive function, checks for pre-existing files
* Revert createDir signature, expose rawCreateDirDmitry Polienko2016-10-221-7/+0
|
* Make createDir return discardable boolDmitry Polienko2016-10-221-0/+19
|
* Add os tests for directory creation, iteration and deletionJoey Payne2016-06-201-8/+84
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-2/+2
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Changed tests and tools to use 'discard' statements instead of 'nil' for ↵Clay Sweetser2014-02-151-1/+1
| | | | empty blocks.
* new tester; all tests categorizedAraq2014-01-131-0/+12