Commit Graph

9 Commits

Author SHA1 Message Date
fe2f087d9f UPdate.
Some checks failed
WrenCI / mac (push) Waiting to run
WrenCI / windows (push) Waiting to run
WrenCI / linux (push) Failing after 55s
2026-01-26 05:12:14 +01:00
Dario Vladović
8190115b97
Implement Platform.homePath (#48)
* fix naming and path max

Co-authored-by: ruby0x1 <ruby0x1@pm.me>
2021-05-02 13:00:19 -07:00
Dario Vladović
4acf7b395d
Implement Process.pid & Process.ppid (#43)
* Implement `Process.pid` & `Process.ppid`

* Update `os` test suite
2021-04-28 14:51:23 -07:00
Josh Goebel
fcea7ba1d5
improve tests just a bit (#79) 2021-04-28 14:45:50 -07:00
Dario Vladović
e4a0fa485e
Implement Process.version (#42)
* Implement `Process.version`
* Update`os` test suite
2020-06-13 21:23:02 -07:00
Dario Vladović
1ab88ed201
Implement Process.cwd (#41)
* Implement `Process.cwd`
* Update `os` test suite
2020-06-13 21:12:34 -07:00
Will Speak
04a7c9b5c8 Improve Travis Build & Test Coverage
Build Wren for more targets, and run the test suite on both 32 and 64
bit builds.

 * Update the build config to test both with and without NAN_TAGGING
   defined.

 * Updatest `util/test.py` to take the executable suffix as a
   parameter. This allows the makefile to control which binaries will be
   tested.

   Adds a new target to the makefile to be run by travis, this runs the
   test suite against all of the configurations it builds.

 * Gcc on some 32 bit platforms was complaining about numeric overflows
   when -INFINITY was used. Update the logic for converting a double to
   a string to not explicitly check against the literal values.

 * Make CI builds run the tests on both 64 _and_ 32 bit builds.

 * If I limit the number of CPUs on my MBP I can get some of the tests
   to time out, I'm imagining that the specs of the Travis Macs means
   that the same is happening there too. Updated the test script to
   allow an extra few seconds for the test to complete successfully
   before killing it.

 * Due to slight differences in accuracy in some computations tests were
   failing on 32 bit builds. Stop comparing things quite as exactly in
   the cases where it is causing issues.

   For some reason 12.34 was refusing to compare equal to itself. Bad
   show 12.34 :-/. I've also updated the test so it doesn't leak handles
   even if the assertions fail.

 * Double-cast from `double` to `uint32_t` to prevent undefined
   behaviour on overflow of basic integers. This should hopefully
   prevent 32 bit test failures on Linux.

 * Move to a version of LibUV with a fix for the 32 bit build error on
   Travis.
2016-12-29 17:52:38 +00:00
Bob Nystrom
2b0878ec6d Platform.isWindows. 2016-05-21 12:53:21 -07:00
Bob Nystrom
06731f66d4 Add a Platform class.
- Rename the "process" module to "os".
- Add Platform to it.
- Static "name" method.
- Static "isPosix" method.
- Docs and tests!
2016-05-21 12:44:17 -07:00