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 int timeout_value; /* child timeout value */
31 /* Environment related definitions */
33 /* 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 */
34 # include <crt_externs.h>
35 # define environ (*_NSGetEnviron())
37 /* the environment, as specified by the opengroup, used to initialize the process properties */
38 extern char **environ;
41 xbt_dict_t env; /* the environment, stored as a dict (for variable substitution) */