Implement Process.pid & Process.ppid (#43)

* Implement `Process.pid` & `Process.ppid`

* Update `os` test suite
This commit is contained in:
Dario Vladović
2021-04-28 14:51:23 -07:00
committed by GitHub
parent bfc0935e80
commit 4acf7b395d
5 changed files with 38 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
import "os" for Process
System.print(Process.pid is Num) // expect: true
System.print(Process.pid.isInteger) // expect: true
System.print(Process.pid > 0) // expect: true
System.print(Process.ppid is Num) // expect: true
System.print(Process.ppid.isInteger) // expect: true
System.print(Process.ppid > 0) // expect: true
System.print(Process.pid > Process.ppid) // expect: true