sockstat: add support for RHE4

This commit is contained in:
Michael Gebetsroither 2016-07-05 23:22:26 +02:00
commit 4b820427dd
3 changed files with 17 additions and 5 deletions

View file

@ -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)
}