[PATCH xorg-gtest 1/7] test: unset environment variable after use

Peter Hutterer peter.hutterer at who-t.net
Thu Dec 13 17:17:34 PST 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/xserver-test.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/xserver-test.cpp b/test/xserver-test.cpp
index 32792e6..7f949ef 100644
--- a/test/xserver-test.cpp
+++ b/test/xserver-test.cpp
@@ -315,6 +315,8 @@ TEST(XServer, KeepAlive)
     server.Kill();
     ASSERT_EQ(server.GetState(), Process::RUNNING);
 
+    unsetenv("XORG_GTEST_XSERVER_KEEPALIVE");
+
     char *buffer;
     ASSERT_GT(asprintf(&buffer, "%d", server.Pid()), 0);
     ASSERT_EQ(write(pipefd[1], buffer, strlen(buffer)), (int)strlen(buffer));
-- 
1.8.0.2



More information about the xorg-devel mailing list