[gnome-settings-daemon] rfkill: Add a comment with basic testing instructions
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] rfkill: Add a comment with basic testing instructions
- Date: Tue, 14 Feb 2017 18:05:28 +0000 (UTC)
commit 0da930316569c77ce6a6dbcb5f236ebee1fb0738
Author: Philip Withnall <withnall endlessm com>
Date: Thu Feb 9 14:25:50 2017 +0000
rfkill: Add a comment with basic testing instructions
As much as I would love to, I don’t have time to write a unit testing
harness which mocks up a slow rfkill FD. So this will have to do.
Suggestion: run it in a tight loop, alternating between enabled and
disabled. See what breaks.
https://bugzilla.gnome.org/show_bug.cgi?id=778383
plugins/rfkill/gsd-rfkill-manager.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/plugins/rfkill/gsd-rfkill-manager.c b/plugins/rfkill/gsd-rfkill-manager.c
index 5470ce7..6e6e130 100644
--- a/plugins/rfkill/gsd-rfkill-manager.c
+++ b/plugins/rfkill/gsd-rfkill-manager.c
@@ -20,6 +20,26 @@
*
*/
+/* Test with:
+ * gdbus call \
+ * --session \
+ * --dest org.gnome.SettingsDaemon.Rfkill \
+ * --object-path /org/gnome/SettingsDaemon/Rfkill \
+ * --method org.freedesktop.DBus.Properties.Set \
+ * "org.gnome.SettingsDaemon.Rfkill" \
+ * "AirplaneMode" \
+ * "<true|false>"
+ * and
+ * gdbus call \
+ * --session \
+ * --dest org.gnome.SettingsDaemon.Rfkill \
+ * --object-path /org/gnome/SettingsDaemon/Rfkill \
+ * --method org.freedesktop.DBus.Properties.Set \
+ * "org.gnome.SettingsDaemon.Rfkill" \
+ * "BluetoothAirplaneMode" \
+ * "<true|false>"
+ */
+
#include "config.h"
#include <gio/gio.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]