From e9606f54857b585bedab29994a5c023bbe4b6696 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 29 Aug 2019 16:43:16 -0400 Subject: 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 Signed-off-by: David Howells --- tests/keyctl/instantiating/bad-args/runtest.sh | 6 +++--- 1 file 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 -- cgit v1.2.1