efl/src/bin/evil/evil_test_realpath.c

45 lines
587 B
C

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <string.h>
#include <Evil.h>
#include "evil_suite.h"
#include "evil_test_realpath.h"
static int
test_realpath_test(void)
{
char buf[PATH_MAX];
char *filename;
char *result;
filename = "evil_suite.exe";
if (!(result = realpath(filename, buf)))
return 0;
printf ("res : %s\n", buf);
return 1;
}
static int
test_realpath_run(suite *s __UNUSED__)
{
int res;
res = test_realpath_test();
return res;
}
int
test_realpath(suite *s)
{
return test_realpath_run(s);
}