sockstat: add support for RHE4
This commit is contained in:
parent
157ac23b4d
commit
4b820427dd
3 changed files with 17 additions and 5 deletions
|
|
@ -20,7 +20,12 @@ import (
|
|||
)
|
||||
|
||||
func TestSockStats(t *testing.T) {
|
||||
file, err := os.Open("fixtures/proc/net/sockstat")
|
||||
testSockStats(t, "fixtures/proc/net/sockstat")
|
||||
testSockStats(t, "fixtures/proc/net/sockstat_rhe4")
|
||||
}
|
||||
|
||||
func testSockStats(t *testing.T, fixture string) {
|
||||
file, err := os.Open(fixture)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue