g_timer_destroy (timer);
g_free (xmlfilename);
srunner_free (sr);
+ g_thread_pool_stop_unused_threads ();
return nf;
}
#include <stdarg.h>
#include <math.h>
+#include <glib.h>
+
#include "internal-check.h"
#include "check_error.h"
#include "check_list.h"
send_failure_info (to_send);
#if defined(HAVE_FORK) && HAVE_FORK==1
if (cur_fork_status () == CK_FORK) {
+ g_thread_pool_stop_unused_threads ();
_exit (1);
}
#endif /* HAVE_FORK */
#include <signal.h>
#include <setjmp.h>
+#include <glib.h>
+
#include "internal-check.h"
#include "check_error.h"
#include "check_list.h"
clock_gettime (check_get_clockid (), &ts_end);
tcase_run_checked_teardown (tc);
send_duration_info (DIFF_IN_USEC (ts_start, ts_end));
+ g_thread_pool_stop_unused_threads ();
exit (EXIT_SUCCESS);
} else {
group_pid = pid;
}
while (pid_w == -1);
if (waserror (status, 0)) {
+ g_thread_pool_stop_unused_threads ();
exit (EXIT_FAILURE);
}
}
+ g_thread_pool_stop_unused_threads ();
exit (EXIT_SUCCESS);
#else /* HAVE_FORK */
eprintf ("This version does not support fork", __FILE__, __LINE__);
libcheck = static_library('check',
libcheck_files,
include_directories : [configinc, internal_check_h_inc],
- dependencies : [rt_lib, mathlib],
+ dependencies : [rt_lib, mathlib, glib_dep],
c_args: gst_c_args + libcheck_visibility_args + no_warn_args +
# Don't want libcompat to think we don't have these and substitute
# replacements since we don't check for or define these. See libcompat.h