diff options
author | Milan Broz <gmazyland@gmail.com> | 2011-10-09 13:46:03 +0000 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2011-10-09 13:46:03 +0000 |
commit | cc3b39980b2f4bcfdda6ec74db4bc57d54aa37d5 (patch) | |
tree | a75b268cd11cd81130dc89fcbf6990579995323e /tests | |
parent | 8c54d938ac5e273c6613ef6c30a889e5abdef65f (diff) | |
download | cryptsetup-cc3b39980b2f4bcfdda6ec74db4bc57d54aa37d5.tar.gz cryptsetup-cc3b39980b2f4bcfdda6ec74db4bc57d54aa37d5.tar.bz2 cryptsetup-cc3b39980b2f4bcfdda6ec74db4bc57d54aa37d5.zip |
Fix luksKillSLot exit code if slot is inactive or invalid. (Issue 108)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@624 36d66b0a-2a48-0410-832c-cd162a569da5
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/compat-test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/compat-test b/tests/compat-test index bef8b9b..3499faf 100755 --- a/tests/compat-test +++ b/tests/compat-test @@ -160,6 +160,8 @@ echo "key1" | $CRYPTSETUP luksOpen $LOOPDEV $DEV_NAME || fail # Unsuccessful Key Delete - nothing may change prepare "[7] unsuccessful delete" echo "invalid" | $CRYPTSETUP luksKillSlot $LOOPDEV 1 2>/dev/null && fail +$CRYPTSETUP -q luksKillSlot $LOOPDEV 8 2>/dev/null && fail +$CRYPTSETUP -q luksKillSlot $LOOPDEV 7 2>/dev/null && fail check # Delete Key Test |