summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2019-08-29 16:43:16 -0400
committerDavid Howells <dhowells@redhat.com>2019-09-04 10:47:38 +0100
commite9606f54857b585bedab29994a5c023bbe4b6696 (patch)
tree4621153d54aff3c1d6e33b41f0665dede1d5a538
parentac8ac9a8ac9c205975138a9eebcb2123580ba599 (diff)
downloadkeyutils-e9606f54857b585bedab29994a5c023bbe4b6696.tar.gz
tests/instantiating: test the unlinked keyid
Testing the `0` ID just repeats the "BAD KEY" tests at the beginning of the file. Signed-off-by: Ben Boeckel <mathstuf@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--tests/keyctl/instantiating/bad-args/runtest.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/keyctl/instantiating/bad-args/runtest.sh b/tests/keyctl/instantiating/bad-args/runtest.sh
index 0b01395..d611fb9 100644
--- a/tests/keyctl/instantiating/bad-args/runtest.sh
+++ b/tests/keyctl/instantiating/bad-args/runtest.sh
@@ -41,11 +41,11 @@ unlink_key --wait $keyid @s
# check that a non-existent key ID fails correctly
marker "CHECK NON-EXISTENT KEY ID"
-instantiate_key --fail 0 a @p
+instantiate_key --fail $keyid a @p
expect_error EPERM
-pinstantiate_key --fail a 0 @p
+pinstantiate_key --fail a $keyid @p
expect_error EPERM
-negate_key --fail 0 10 @p
+negate_key --fail $keyid 10 @p
expect_error EPERM
echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE