/*
SSSD
find_uid - Utilities tests
Authors:
Abhishek Singh <abhishekkumarsingh.cse@gmail.com>
Copyright (C) 2013 Red Hat
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 <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <dirent.h>
#include <unistd.h>
#include <libgen.h>
#include "limits.h"
/* Creates a unique temporary file inside TEST_DIR and returns its path*/
{
int ret;
char *path;
if (ret == -1) {
}
/* We do not need this file descriptor */
return path;
}
{
int ret;
char *file_path;
return 0;
}
{
int ret;
return 0;
}
struct dir_state {
int dir_fd;
char *basename;
/* resources for cleanup*/
char *filename;
};
{
int ret;
}
return 0;
}
{
int ret;
return 0;
}
{
int fd;
int ret;
int ret_flag;
int expec_flag;
}
{
int fd;
int ret;
assert_int_not_equal(ret, 0);
}
{
int fd;
int ret;
int ret_flag;
int expec_flag;
}
{
int fd;
int ret;
}
int main(void)
{
};
}