From: =?utf-8?b?RnLDqWTDqXJpYyBCb25uYXJk?= <frediz@debian.org>
Date: Mon, 14 Jan 2019 01:06:38 +0000
Subject: Fix TestReadFixture on non-4K page size archs

Forwarded: no

TestReadFixture checks fixtures/14804/stat RSS which is a number of page
and compares it to hardcoded expected value 0x7b1000 (= 1969 * 4096).
Instead of using a 4k expected value, use system's pagesize like it's
done in proc_stat.go .
---
 proc/read_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proc/read_test.go b/proc/read_test.go
index bddda5d..1dd7d48 100644
--- a/proc/read_test.go
+++ b/proc/read_test.go
@@ -84,7 +84,7 @@ func TestReadFixture(t *testing.T) {
 			CtxSwitchNonvoluntary: 6,
 		},
 		Memory: Memory{
-			ResidentBytes: 0x7b1000,
+			ResidentBytes: uint64(0x7b1 * os.Getpagesize()),
 			VirtualBytes:  0x1061000,
 			VmSwapBytes:   0x2800,
 		},
