mirror of
https://github.com/vgough/encfs.git
synced 2025-07-11 09:56:58 +02:00
Check BADMSG return codes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user