test_child_common.c revision e00c2b5ac4963de9521599c88597b7fb97339d0e
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek Jakub Hrozek <jhrozek@redhat.com>
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek Copyright (C) 2014 Red Hat
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek SSSD tests: Child handlers
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek This program is free software; you can redistribute it and/or modify
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek it under the terms of the GNU General Public License as published by
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek the Free Software Foundation; either version 3 of the License, or
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek (at your option) any later version.
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek This program is distributed in the hope that it will be useful,
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek GNU General Public License for more details.
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek You should have received a copy of the GNU General Public License
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek child_tctx = talloc(global_talloc_context, struct child_test_ctx);
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek child_tctx->test_ctx = create_ev_test_ctx(child_tctx);
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek DEBUG(SSSDBG_TRACE_LIBS, "from_child: %d:%d\n",
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek struct child_test_ctx *child_tctx = talloc_get_type(*state,
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek/* Just make sure the exec works. The child does nothing but exits */
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek struct child_test_ctx *child_tctx = talloc_get_type(*state,
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek "Failed to wait for children %d\n", child_pid);
e00c2b5ac4963de9521599c88597b7fb97339d0eJakub Hrozek /* Set debug level to invalid value so we can deside if -d 0 was used. */