44 rc = asprintf(&cmd,
"rm -fr '%s'", sandbox);
49 warn(
"*WARNING* sandbox cleanup at \"%s\" failed: %i\n",
103 result = freopen(path,
"a+",
stream);
134 fseek(
fp, 0L, SEEK_SET);
135 memset(line,
'\0', MAXLINE);
136 while (fgets(line, MAXLINE,
fp) !=
NULL) {
137 if (strncmp(mesg, line, strlen(mesg)) == 0)
M0_INTERNAL bool m0_error_mesg_match(FILE *fp, const char *mesg)
M0_INTERNAL void m0_stream_restore(const struct m0_ut_redirect *redir)
int m0_ut_sandbox_init(const char *dir)
static int sandbox_remove(const char *sandbox)
void m0_ut_sandbox_fini(const char *dir, bool keep)
M0_INTERNAL void m0_stream_redirect(FILE *stream, const char *path, struct m0_ut_redirect *redir)