diff options
author | Martin Pitt <martinpitt@gnome.org> | 2013-01-14 16:45:38 +0100 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2013-01-14 16:45:38 +0100 |
commit | 62f76177d498fb5caf6159df235050a3835cc182 (patch) | |
tree | 04baa2822c16784b7e5b85a27f3f9f94951c00d6 /tests | |
parent | 6dde03d8d4b12e9cc3dd507345a3420a24567ef7 (diff) | |
download | gnome-settings-daemon-62f76177d498fb5caf6159df235050a3835cc182.tar.gz |
power tests: Check idle/suspend inhibition
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gsdtestcase.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py index 3d2485f6..5b933655 100644 --- a/tests/gsdtestcase.py +++ b/tests/gsdtestcase.py @@ -34,6 +34,13 @@ if subprocess.call(['which', 'gnome-session'], stdout=subprocess.PIPE) != 0: top_builddir = os.environ.get('TOP_BUILDDIR', os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +# from gnome-session/gsm-inhibitor.h +GSM_INHIBITOR_FLAG_LOGOUT = 1 << 0 +GSM_INHIBITOR_FLAG_SWITCH_USER = 1 << 1 +GSM_INHIBITOR_FLAG_SUSPEND = 1 << 2 +GSM_INHIBITOR_FLAG_IDLE = 1 << 3 +GSM_INHIBITOR_FLAG_AUTOMOUNT = 1 << 4 + def set_nonblock(fd): '''Set a file object to non-blocking''' |