summaryrefslogtreecommitdiff
path: root/src/bin/evil/evil_test_realpath.c
blob: fbc4d1d570c34dc704d583dbd72cf3f345a03557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */

#include <stdio.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)
{
   int res;

   res = test_realpath_test();

   return res;
}

int
test_realpath(suite *s)
{
   return test_realpath_run(s);
}