aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.cc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-03 06:44:56 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-03 06:44:56 +0200
commit95e1c55437699aee29235e5ba2c919adbf51145e (patch)
tree70ad905a8f3e9544b8c41380eea404d3231f2e41 /src/test.cc
parenttest libgamma::method_capabilities (diff)
downloadlibgammamm-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.cc16
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;