test_io.c revision f333ca01311000475db0fbd059243d05f9a90e96
/*
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"
#define TESTS_PATH "tests_io"
/* Creates a unique temporary file inside TEST_DIR and returns its path*/
static char *get_random_filepath(const char *template)
{
int ret;
char *path;
if (ret == -1) {
}
/* We do not need this file descriptor */
return path;
}
void test_file_setup(void **state)
{
int ret;
char *file_path;
}
void test_file_teardown(void **state)
{
int ret;
}
struct dir_state {
int dir_fd;
char *basename;
/* resources for cleanup*/
char *filename;
};
void test_dir_setup(void **state)
{
int ret;
}
}
void test_dir_teardown(void **state)
{
int ret;
}
void test_sss_open_cloexec_success(void **state)
{
int fd;
int ret;
int ret_flag;
int expec_flag;
}
void test_sss_open_cloexec_fail(void **state)
{
int fd;
int ret;
assert_int_not_equal(ret, 0);
}
void test_sss_openat_cloexec_success(void **state)
{
int fd;
int ret;
int ret_flag;
int expec_flag;
}
void test_sss_openat_cloexec_fail(void **state)
{
int fd;
int ret;
}
int main(void)
{
};
}