5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2025-01-08 01:17:40 +03:00

test socket/fifo entry kinds in accessor

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-10-27 14:59:49 +02:00
parent 6f3f889e98
commit 85f5a177ef

View File

@ -125,9 +125,10 @@ fn check_run_special_files(accessor: &accessor::Accessor<&[u8]>) {
"expected first file in /run to be fifo0"
);
let _entry = fifo0
let entry = fifo0
.decode_entry()
.expect("failed to decode entry for fifo0");
assert!(matches!(entry.kind(), PxarEntryKind::Fifo));
let sock0 = rd
.next()
@ -139,7 +140,8 @@ fn check_run_special_files(accessor: &accessor::Accessor<&[u8]>) {
"expected second file in /run to be sock0"
);
let _entry = sock0
let entry = sock0
.decode_entry()
.expect("failed to decode entry for sock0");
assert!(matches!(entry.kind(), PxarEntryKind::Socket));
}