From 95e1c55437699aee29235e5ba2c919adbf51145e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 3 Sep 2014 06:44:56 +0200 Subject: libgamma_group_gid and libgamma_group_name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/test.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/test.cc') 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; -- cgit v1.2.3-70-g09d2