summaryrefslogtreecommitdiff
path: root/tests/keyctl/watch/bad-args/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/keyctl/watch/bad-args/runtest.sh')
-rw-r--r--tests/keyctl/watch/bad-args/runtest.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/keyctl/watch/bad-args/runtest.sh b/tests/keyctl/watch/bad-args/runtest.sh
deleted file mode 100644
index 8bbd8c0..0000000
--- a/tests/keyctl/watch/bad-args/runtest.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. ../../../prepare.inc.sh
-. ../../../toolbox.inc.sh
-
-
-# ---- do the actual testing ----
-
-result=PASS
-echo "++++ BEGINNING TEST" >$OUTPUTFILE
-
-# Attempt to watch an invalid key
-marker "CHECK WATCH INVALID KEY"
-watch_key --fail 0
-expect_error EINVAL
-
-# Add a user key to the session keyring for us to play with
-marker "ADD USER KEY"
-create_key --new=keyid user wibble stuff @s
-
-# Remove the key we just added
-marker "UNLINK KEY"
-unlink_key --wait $keyid @s
-
-# It should fail when we attempt to watch it
-marker "UPDATE UNLINKED KEY"
-watch_key --fail $keyid
-expect_error ENOKEY
-
-# Try a number of dodgy filters
-marker "CHECK DODGY FILTERS"
-watch_key --fail2 -fZ @s
-watch_key --fail2 -fZ -fQ @s
-watch_key --fail2 -f: @s
-
-echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
-
-# --- then report the results in the database ---
-toolbox_report_result $TEST $result