missing files

SVN revision: 37041
This commit is contained in:
Vincent Torri 2008-10-24 06:06:57 +00:00
parent 842d3dcf79
commit ccab8e2101
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,37 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <string.h>
#include <Evil.h>
#include "evil_suite.h"
static int
test_env_tests_run(suite *s)
{
char *val;
int res;
res = setenv("EVIL_TEST_ENV", "val1", 1);
if (res < 0)
return 0;
val = getenv("EVIL_TEST_ENV");
printf ("val : %s\n", val);
if (strcmp(val, "val1"))
return 0;
return 1;
}
int
test_environment(suite *s)
{
return test_env_tests_run(s);
}

View File

@ -0,0 +1,8 @@
#ifndef __EVIL_TEST_ENVIRONMENT__
#define __EVIL_TEST_ENVIRONMENT__
int test_environment(suite *s);
#endif /* __EVIL_TEST_ENVIRONMENT__ */