[PATCH wayland 2/8] test-compositor: extend leak checks into clients

Bill Spitzak spitzak at gmail.com
Tue Jan 27 11:49:22 PST 2015


On 01/27/2015 04:24 AM, Daniel Stone wrote:

I like the second patch (the one that tests if WAYLAND_SOCKET was 
cleared) better but this:

+	if (!getenv("WAYLAND_SOCKET"))
+		consumed_inherited_fd = 1;
+
+	check_leaks(cur_alloc, cur_fds - consumed_inherited_fd);

could instead be this:

+	if (!getenv("WAYLAND_SOCKET"))
+		--cur_fds;
+
+	check_leaks(cur_alloc, cur_fds);
  }


More information about the wayland-devel mailing list