mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Check BADMSG return codes
This commit is contained in:
parent
59ba9de03f
commit
8e13120b18
@ -111,7 +111,7 @@ sub corruption
|
||||
ok( open(IN, "< $crypt/corrupt"), "open corrupted file");
|
||||
my $content;
|
||||
$result = read(IN, $content, 20);
|
||||
ok(! defined $result, "corrupted file with MAC returns read error: $!");
|
||||
ok($!{EBADMSG} && (! defined $result), "corrupted file with MAC returns read error: $!");
|
||||
}
|
||||
|
||||
# Test internal modification
|
||||
|
Loading…
Reference in New Issue
Block a user