summaryrefslogblamecommitdiff
path: root/legacy/evil/src/bin/evil_test_realpath.c
blob: 0821b904cb6faa329afd870d5333a4c0efcc1edb (plain) (tree)
1
2
3
4
5
6
7
8
9








                          

                               
































                                           
#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"


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)
{
   int res;

   res = test_realpath_test();

   return res;
}

int
test_realpath(suite *s)
{

   return test_realpath_run(s);
}