File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -4787,6 +4787,14 @@ func testProc(v *Nvim) func(*testing.T) {
4787
4787
t .Fatalf ("got %d Process.PPID but want %d" , gotProc .PPID , wantProcess .PPID )
4788
4788
}
4789
4789
})
4790
+
4791
+ t .Run ("ProcChildren" , func (t * testing.T ) {
4792
+ _ , err := v .ProcChildren (os .Getpid ())
4793
+ if err != nil {
4794
+ t .Fatal (err )
4795
+ }
4796
+ // TODO(zchee): assert processes
4797
+ })
4790
4798
})
4791
4799
4792
4800
t .Run ("Batch" , func (t * testing.T ) {
@@ -4823,6 +4831,17 @@ func testProc(v *Nvim) func(*testing.T) {
4823
4831
t .Fatalf ("got %d Process.PPID but want %d" , gotProc .PPID , wantProcess .PPID )
4824
4832
}
4825
4833
})
4834
+
4835
+ t .Run ("ProcChildren" , func (t * testing.T ) {
4836
+ b := v .NewBatch ()
4837
+
4838
+ var processes []uint
4839
+ b .ProcChildren (os .Getpid (), & processes )
4840
+ if err := b .Execute (); err != nil {
4841
+ t .Fatal (err )
4842
+ }
4843
+ // TODO(zchee): assert processes
4844
+ })
4826
4845
})
4827
4846
}
4828
4847
}
You can’t perform that action at this time.
0 commit comments