Skip to content

Commit c017a00

Browse files
committed
Adds test for multiple continuous spaces
1 parent 047c2b3 commit c017a00

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/symbolize/gimli/parse_running_mmaps_unix.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,18 @@ fn check_maps_entry_parsing_32bit() {
264264
pathname: "/executable/path/with some spaces".into(),
265265
}
266266
);
267+
assert_eq!(
268+
"b7c79000-b7e02000 r--p 00000000 08:01 60662705 \
269+
/executable/path/with multiple-continues spaces "
270+
.parse::<MapsEntry>()
271+
.unwrap(),
272+
MapsEntry {
273+
address: (0xb7c79000, 0xb7e02000),
274+
perms: ['r', '-', '-', 'p'],
275+
offset: 0x00000000,
276+
dev: (0x08, 0x01),
277+
inode: 0x60662705,
278+
pathname: "/executable/path/with multiple-continues spaces".into(),
279+
}
280+
);
267281
}

0 commit comments

Comments
 (0)