3 /* TESH (Test Shell) -- mini shell specialized in running test units */
5 /* Copyright (c) 2007-2008, Da SimGrid team. */
6 /* All rights reserved. */
8 /* This program is free software; you can redistribute it and/or modify it
9 * under the terms of the license (GNU LGPL) which comes with this package. */
15 #include "xbt/xbt_os_thread.h"
16 #include "xbt/strbuff.h"
18 /*** What we need to know about signals ***/
19 /******************************************/
20 /* return the name of a signal, aliasing SIGBUS to SIGSEGV since
21 segfault leads to any of them depending on the system */
22 const char *signal_name(unsigned int got, char *expected);
24 #include "run_context.h"
27 int timeout_value; /* child timeout value */
33 /* Environment related definitions */
35 /* 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 */
36 # include <crt_externs.h>
37 # define environ (*_NSGetEnviron())
39 /* the environment, as specified by the opengroup, used to initialize the process properties */
40 extern char **environ;
43 xbt_dict_t env; /* the environment, stored as a dict (for variable substitution) */