Back to index

im-sdk  12.3.91
Functions
fop_test.h File Reference
#include <iml_fop.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int fop_test_cases_all (void *, iml_fop_get_function_t)

Function Documentation

int fop_test_cases_all ( void *  ,
iml_fop_get_function_t   
)

Definition at line 1279 of file fop_test_case.c.

{
    void *    fopc;

    fop__fopc_create =
       (iml__fopc_create_t)(fop_get_function("_nsc_create"));
    if (NULL == fop__fopc_create) fprintf(stderr, "_nsc_create: fail\n");
    fop__fopc_free = (iml__fopc_free_t)(fop_get_function("_nsc_free"));
    if (NULL == fop__fopc_free) fprintf(stderr, "_nsc_free: fail\n");
    fop_access = (iml_fop_access_t)(fop_get_function("access"));
    if (NULL == fop_access) fprintf(stderr, "access: fail\n");
    fop_chmod = (iml_fop_chmod_t)(fop_get_function("chmod"));
    if (NULL == fop_chmod) fprintf(stderr, "chmod: fail\n");
    fop_fchmod = (iml_fop_fchmod_t)(fop_get_function("fchmod"));
    if (NULL == fop_fchmod) fprintf(stderr, "fchmod: fail\n");
    fop_chown = (iml_fop_chown_t)(fop_get_function("chown"));
    if (NULL == fop_chown) fprintf(stderr, "chown: fail\n");
#if 0
    fop_lchown = (iml_fop_lchown_t)(fop_get_function("lchown"));
    if (NULL == fop_lchown) fprintf(stderr, "lchown: fail\n");
#endif
    fop_fchown = (iml_fop_fchown_t)(fop_get_function("fchown"));
    if (NULL == fop_fchown) fprintf(stderr, "fchown: fail\n");
    fop_close = (iml_fop_close_t)(fop_get_function("close"));
    if (NULL == fop_close) fprintf(stderr, "close: fail\n");
    fop_closedir = (iml_fop_closedir_t)(fop_get_function("closedir"));
    if (NULL == fop_closedir) fprintf(stderr, "closedir: fail\n");
    fop_creat = (iml_fop_creat_t)(fop_get_function("creat"));
    if (NULL == fop_creat) fprintf(stderr, "creat: fail\n");
    fop_fcntl = (iml_fop_fcntl_t)(fop_get_function("fcntl"));
    if (NULL == fop_fcntl) fprintf(stderr, "fcntl: fail\n");
#if 0
    fop_fpathconf = (iml_fop_fpathconf_t)(fop_get_function("fpathconf"));
    if (NULL == fop_fpathconf) fprintf(stderr, "fpathconf: fail\n");
#endif
    fop_fstat = (iml_fop_fstat_t)(fop_get_function("fstat"));
    if (NULL == fop_fstat) fprintf(stderr, "fstat: fail\n");
    fop_ftruncate = (iml_fop_ftruncate_t)(fop_get_function("ftruncate"));
    if (NULL == fop_ftruncate) fprintf(stderr, "ftruncate: fail\n");
    fop_link = (iml_fop_link_t)(fop_get_function("link"));
    if (NULL == fop_link) fprintf(stderr, "link: fail\n");
    fop_lseek = (iml_fop_lseek_t)(fop_get_function("lseek"));
    if (NULL == fop_lseek) fprintf(stderr, "lseek: fail\n");
    fop_lstat = (iml_fop_lstat_t)(fop_get_function("lstat"));
    if (NULL == fop_lstat) fprintf(stderr, "lstat: fail\n");
    fop_mkdir = (iml_fop_mkdir_t)(fop_get_function("mkdir"));
    if (NULL == fop_mkdir) fprintf(stderr, "mkdir: fail\n");
    fop_open = (iml_fop_open_t)(fop_get_function("open"));
    if (NULL == fop_open) fprintf(stderr, "open: fail\n");
    fop_opendir = (iml_fop_opendir_t)(fop_get_function("opendir"));
    if (NULL == fop_opendir) fprintf(stderr, "opendir: fail\n");
#if 0
    fop_pathconf = (iml_fop_pathconf_t)(fop_get_function("pathconf"));
    if (NULL == fop_pathconf) fprintf(stderr, "pathconf: fail\n");
#endif
    fop_read = (iml_fop_read_t)(fop_get_function("read"));
    if (NULL == fop_read) fprintf(stderr, "read: fail\n");
    fop_readdir = (iml_fop_readdir_t)(fop_get_function("readdir"));
    if (NULL == fop_readdir) fprintf(stderr, "readdir: fail\n");
#if 0
    fop_readv = (iml_fop_readv_t)(fop_get_function("readv"));
    if (NULL == fop_readv) fprintf(stderr, "readv: fail\n");
#endif
    fop_rename = (iml_fop_rename_t)(fop_get_function("rename"));
    if (NULL == fop_rename) fprintf(stderr, "rename: fail\n");
    fop_rmdir = (iml_fop_rmdir_t)(fop_get_function("rmdir"));
    if (NULL == fop_rmdir) fprintf(stderr, "rmdir: fail\n");
    fop_stat = (iml_fop_stat_t)(fop_get_function("stat"));
    if (NULL == fop_stat) fprintf(stderr, "stat: fail\n");
    fop_symlink = (iml_fop_symlink_t)(fop_get_function("symlink"));
    if (NULL == fop_symlink) fprintf(stderr, "symlink: fail\n");
    fop_truncate = (iml_fop_truncate_t)(fop_get_function("truncate"));
    if (NULL == fop_truncate) fprintf(stderr, "truncate: fail\n");
    fop_unlink = (iml_fop_unlink_t)(fop_get_function("unlink"));
    if (NULL == fop_unlink) fprintf(stderr, "unlink: fail\n");
    fop_utime = (iml_fop_utime_t)(fop_get_function("utime"));
    if (NULL == fop_utime) fprintf(stderr, "utime: fail\n");
    fop_utimes = (iml_fop_utimes_t)(fop_get_function("utimes"));
    if (NULL == fop_utimes) fprintf(stderr, "utimes: fail\n");
    fop_write = (iml_fop_write_t)(fop_get_function("write"));
    if (NULL == fop_write) fprintf(stderr, "write: fail\n");
#if 0
    fop_writev = (iml_fop_writev_t)(fop_get_function("writev"));
    if (NULL == fop_writev) fprintf(stderr, "writev: fail\n");
#endif

    fopc = fop__fopc_create("fop_test", IML_NSC_TYPE_DESKTOP, ptr);

    test_prep(fopc);
    test_open(fopc);
    test_read(fopc);
#if 0
    test_readv(fopc);
#endif
    test_write(fopc);
#if 0
    test_writev(fopc);
#endif
    test_close(fopc);
    test_creat(fopc);
    test_lseek(fopc);
    test_stat(fopc);
    test_lstat(fopc);
    test_fstat(fopc);
    test_mkkdir(fopc);
    test_rmdir(fopc);
    test_symlink(fopc);
    test_link(fopc);
    test_unlink(fopc);
    test_rename(fopc);
    test_fcntl(fopc);
    test_truncate(fopc);
    test_ftruncate(fopc);
    test_opendir(fopc);
    test_readdir(fopc);
    test_closedir(fopc);
    test_access(fopc);
    test_chmod(fopc);
    test_fchmod(fopc);
    test_chown(fopc);
#if 0
    test_lchown(fopc);
#endif
    test_fchown(fopc);
#if 0
    test_fpathconf(fopc);
    test_pathconf(fopc);
#endif
    test_utime(fopc);
    test_utimes(fopc);

    fop__fopc_free(fopc);

    return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function: