From 110731e5c014f5da6ecd0fcfb981f2992e8acf8f Mon Sep 17 00:00:00 2001 From: Ben Frederickson Date: Mon, 8 Nov 2021 21:33:11 -0800 Subject: [PATCH] Fix unittests on 32bit linux --- ci/testdata/map.txt | 2 +- src/linux_maps.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/testdata/map.txt b/ci/testdata/map.txt index 83d40a7..fd24720 100644 --- a/ci/testdata/map.txt +++ b/ci/testdata/map.txt @@ -1,4 +1,4 @@ 00400000-00507000 r-xp 00000000 00:14 205736 /usr/bin/fish 00708000-0070a000 rw-p 00000000 00:00 0 0178c000-01849000 rw-p 00000000 00:00 0 [heap] -7f438053b000-7f438053f000 r--p 00000000 fd:01 59034409 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4200.6 (deleted) +7f438050-7f438060 r--p 00000000 fd:01 59034409 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.4200.6 (deleted) diff --git a/src/linux_maps.rs b/src/linux_maps.rs index 0a4ca8e..ebc568d 100644 --- a/src/linux_maps.rs +++ b/src/linux_maps.rs @@ -121,8 +121,8 @@ fn test_parse_maps() { pathname: Some("[heap]".to_string()), }, MapRange { - range_start: 0x7f438053b000, - range_end: 0x7f438053f000, + range_start: 0x7f438050, + range_end: 0x7f438060, offset: 0, dev: "fd:01".to_string(), flags: "r--p".to_string(),