/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2014 Red Hat
SSSD tests: User utilities
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <fcntl.h>
#include <talloc.h>
#include <popt.h>
#include "responder/common/responder.h"
#include "tests/cmocka/common_mock.h"
/* Just to satisfy dependencies */
{
};
}
{
}
{
}
{
}
struct create_pipe_ctx {
int fd;
const char *sock_name;
};
{
return 0;
}
{
int ret;
int optval;
/* Check existence of the file and the permissions */
assert_int_equal(ret, 0);
/* Check it's a UNIX socket */
assert_int_equal(ret, 0);
assert_int_equal(ret, 0);
/* Make sure this is a listening socket */
assert_int_equal(ret, 0);
/* Check the right protocol */
assert_int_equal(ret, 0);
assert_int_equal(optval, 0);
}
{
int ret;
/* Make sure we can overwrite an existing socket */
}
{
}
return 0;
}
{
int opt;
};
};
/* Set debug level to invalid value so we can deside if -d 0 was used. */
switch(opt) {
default:
return 1;
}
}
}