1 /* TESH (Test Shell) -- mini shell specialized in running test units */
3 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #include "xbt/xbt_os_thread.h"
14 #include "xbt/strbuff.h"
16 /*** What we need to know about signals ***/
17 /******************************************/
18 /* return the name of a signal, aliasing SIGBUS to SIGSEGV since
19 segfault leads to any of them depending on the system */
20 const char *signal_name(unsigned int got, char *expected);
22 #include "run_context.h"
25 extern int timeout_value; /* child timeout value */
26 extern int sort_len; /* length of the prefix to sort */
27 extern char* option; /* cfg for command line */
28 #define SORT_LEN_DEFAULT 19
29 extern int coverage; /* coverage */
32 extern const char *testsuite_name;
35 /* Environment related definitions */
37 /* under darwin, the environment gets added to the process at startup time. So, it's not defined at library link time, forcing us to extra tricks */
38 # include <crt_externs.h>
39 # define environ (*_NSGetEnviron())
41 /* the environment, as specified by the opengroup, used to initialize the process properties */
42 extern char **environ;
45 extern xbt_dict_t env; /* the environment, stored as a dict (for variable substitution) */