From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Boeckel Date: Thu, 29 Aug 2019 20:43:16 +0000 Subject: [PATCH v2 08/13] tests/instantiating: test the unlinked keyid Message-Id: <20190829204322.8015-9-mathstuf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: To: keyrings@vger.kernel.org Testing the `0` ID just repeats the "BAD KEY" tests at the beginning of the file. Signed-off-by: Ben Boeckel --- 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 -- 2.21.0