diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-03 06:44:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-03 06:44:56 +0200 |
commit | 95e1c55437699aee29235e5ba2c919adbf51145e (patch) | |
tree | 70ad905a8f3e9544b8c41380eea404d3231f2e41 /src/test.cc | |
parent | test libgamma::method_capabilities (diff) | |
download | libgammamm-95e1c55437699aee29235e5ba2c919adbf51145e.tar.gz libgammamm-95e1c55437699aee29235e5ba2c919adbf51145e.tar.bz2 libgammamm-95e1c55437699aee29235e5ba2c919adbf51145e.tar.xz |
libgamma_group_gid and libgamma_group_name
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/test.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc index fabaa00..c802c71 100644 --- a/src/test.cc +++ b/src/test.cc @@ -155,6 +155,22 @@ int main(void) std::cout << "fake: " << caps.fake << std::endl; std::cout << std::endl; + std::cout << libgamma::group_gid << std::endl; + libgamma::group_gid = 10; + std::cout << libgamma::group_gid << std::endl; + std::cout << std::endl; + + if (libgamma::group_name == nullptr) + std::cout << "(nullptr)" << std::endl; + else + std::cout << libgamma::group_name << std::endl; + libgamma::group_name = "test-group"; + if (libgamma::group_name == nullptr) + std::cout << "(nullptr)" << std::endl; + else + std::cout << libgamma::group_name << std::endl; + std::cout << std::endl; + delete crtc; delete partition; delete site; |