aboutsummaryrefslogtreecommitdiff
path: root/contrib/atf/atf-c/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/atf/atf-c/utils.c')
-rw-r--r--contrib/atf/atf-c/utils.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/atf/atf-c/utils.c b/contrib/atf/atf-c/utils.c
index 1e2aac1ed3b6..d8355bc68936 100644
--- a/contrib/atf/atf-c/utils.c
+++ b/contrib/atf/atf-c/utils.c
@@ -41,6 +41,9 @@
#include "atf-c/detail/dynstr.h"
+/* No prototype in header for this one, it's a little sketchy (internal). */
+void atf_tc_set_resultsfile(const char *);
+
/** Allocate a filename to be used by atf_utils_{fork,wait}.
*
* In case of a failure, marks the calling test as failed when in_parent is
@@ -271,6 +274,13 @@ atf_utils_fork(void)
return pid;
}
+void
+atf_utils_reset_resultsfile(void)
+{
+
+ atf_tc_set_resultsfile("/dev/null");
+}
+
/** Frees an dynamically-allocated "argv" array.
*
* \param argv A dynamically-allocated array of dynamically-allocated