aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/status/test-statusctl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/status/test-statusctl.sh')
-rwxr-xr-xdesktop/modules/status/test-statusctl.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/modules/status/test-statusctl.sh b/desktop/modules/status/test-statusctl.sh
index 82e2de1..7b1b188 100755
--- a/desktop/modules/status/test-statusctl.sh
+++ b/desktop/modules/status/test-statusctl.sh
@@ -56,6 +56,13 @@ check "toggle from 0" "1" "$("$ctl" dnd get)"
"$ctl" dnd set 0
check "set 0 writes the file" "0" "$("$ctl" dnd get)"
+# nolock is a mode like any other: the mechanism is generic, this only pins
+# that the name is accepted by the mode list.
+"$ctl" nolock set 1
+check "nolock set 1" "1" "$("$ctl" nolock get)"
+"$ctl" nolock toggle
+check "nolock toggle" "0" "$("$ctl" nolock get)"
+
# An unknown mode is an error, not a silent success: a typo must not look
# like a mode that is off.
"$ctl" nosuch get >/dev/null 2>&1