Commit Graph

9 Commits (bc4661937d9b189072254f4c9e4bc7f258a751d1)

Author SHA1 Message Date
Tom Barker bc4661937d Minor cleanups motivated by staticcheck warnings.
Tom Barker 5ce887df8f Make sure that Test_AllProcesses_cmdLine doesn't ignore failures.
Tom Barker 34cdfa258b Test_Connections currently fails intermittently on Linux (and maybe
other OSs), and fails consistently if run with `go test -times=N`

On inspection, Go closes TCP connections when they go out of scope and
are garbage collected. I've re-written Test_Connections() to explicitly
close connectections once the test has finished. This has the other
benefit of closing gracefully, which means the -times argument should
work.

I've also removed the t.Skip() calls inside goroutines as they are
unsupported.
Max Altgelt 73fee847e6
chore: add tests
Add simple tests to verify that environment variables are read.
John Blesener e8b2bea47f
Fix spaces on long process names for MacOS
Lomanic 995610e109 [process][windows] Fix Nice() test expecting Unix values
Lomanic 907e475a45 [v3][process] Fix Test_Process_Status test with new Status() API
shirou b7e74218ca [v3 migration] change process.Status returns []string with no letter status string.
shirou 005a35c436 [v3 migartion] add v3 sourcodes, and change disk.opts to []string