Handle /proc/.../maps being reordered

We now search for the first r-xp line in the file
This commit is contained in:
Matt Johnston
2022-02-03 22:13:06 +08:00
parent 9124997602
commit 26feb8f13e
2 changed files with 5 additions and 4 deletions

View File

@@ -28,7 +28,6 @@ def test_reexec(request, dropbear):
# expect something like
# "563174d59000-563174d5d000 r--p 00000000 00:29 4242372 /home/matt/src/dropbear/build/dropbear"
assert map1.endswith('/dropbear') or map1.endswith('/dropbearmulti')
assert ' r--p ' in map1
a1 = map1.split()[0]
a2 = map2.split()[0]
print(a1)